lesson 8 cmp else c
[[lesson_8_cmp_else_c]] last edit on Aug 10, 2005 3:35 AM by rescued_by_c

[user02@FC4 Lesson08]$ cat -n if_else.c
   1  #include <stdio.h>
   2
   3  int main(void)
   4  {
   5     int test_score = 95;
   6
   7     if (test_score >= 90)
   8        printf("Congratulations, you got an A!\n");
   9     else
  10        printf("You must work harder next time!\n");
  11
  12     return 0;
  13  }
[user02@FC4 Lesson08]$ gcc -o if_else if_else.c
[user02@FC4 Lesson08]$ ./if_else
Congratulations, you got an A!