picoc/tests/33_ternary_op.c

9 lines
136 B
C
Raw Normal View History

#include <stdio.h>
int Count;
for (Count = 0; Count < 10; Count++)
{
printf("%d\n", (Count < 5) ? (Count*Count) : (Count * 3));
}