lesson 8 compound cpp
[[lesson_8_compound_cpp]] last edit on Aug 10, 2005 3:26 AM by rescued_by_c

[user02@FC4 Lesson08]$ cat -n compound.cpp
   1  #include <iostream>
   2  using namespace std;
   3
   4  int main()
   5  {
   6     int test_score = 95;
   7
   8     if (test_score >= 90)
   9        {
  10           cout << "Congratulations, you got an A!" << endl;
  11           cout << "Your test score was " << test_score << endl;
  12        }
  13
  14     return 0;
  15  }
[user02@FC4 Lesson08]$ g++ -o compound compound.cpp
[user02@FC4 Lesson08]$ ./compound
Congratulations, you got an A!
Your test score was 95