lesson 8 compound c
[[lesson_8_compound_c]] last edit on
Aug 10, 2005
3:35 AM
by rescued_by_c
[user02@FC4 Lesson08]$ cat -n compound.c
[user02@FC4 Lesson08]$ ./compound
Congratulations, you got an A!
Your test score was 95
1 #include <stdio.h>
2
3 int main(void)
4 {
5 int test_score = 95;
6
7 if (test_score >= 90)
8 {
9 printf("Congratulations, you got an A!\n");
10 printf("Your test score was %d\n", test_score);
11 }
12
13 return 0;
14 }
[user02@FC4 Lesson08]$ gcc -o compound compound.c[user02@FC4 Lesson08]$ ./compound
Congratulations, you got an A!
Your test score was 95