summaryrefslogtreecommitdiff
path: root/05/tcc-0.9.27/tests/tests2/33_ternary_op.c
blob: 8579b5029a1eae8437f539e41462f6abca1c0e29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main()
{
   int Count;

   for (Count = 0; Count < 10; Count++)
   {
      printf("%d\n", (Count < 5) ? (Count*Count) : (Count * 3));
   }

   return 0;
}

/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/