33_ternary_op.c 228 B

12345678910111213141516
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int Count;
  5. for (Count = 0; Count < 10; Count++)
  6. {
  7. printf("%d\n", (Count < 5) ? (Count*Count) : (Count * 3));
  8. }
  9. return 0;
  10. }
  11. /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/