Newer
Older
ubixos / contrib / tcc / tests / tests2 / 33_ternary_op.c
@Christopher W. Olsen Christopher W. Olsen on 29 Jan 2020 228 bytes TinyCC
#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 :*/