1
0

truth.c 300 B

1234567891011121314151617
  1. // truth.c -- what values are true?
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. int n = 3;
  6. while (n)
  7. printf("%2d is true\n", n--);
  8. printf("%2d is false\n", n);
  9. n = -3;
  10. while (n)
  11. printf("%2d is true\n", n++);
  12. printf("%2d is false\n", n);
  13. return 0;
  14. }