lesson 8 first if c
[[lesson_8_first_if_c]] last edit on Aug 10, 2005 3:34 AM by rescued_by_c

[user02@FC4 Lesson08]$ cat -n first_if.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
  10     return 0;
  11  }
[user02@FC4 Lesson08]$ gcc -o first_if first_if.c
[user02@FC4 Lesson08]$ ./first_if
Congratulations, you got an A!