home *** CD-ROM | disk | FTP | other *** search
- //INTRO3.CPP--Example from Chapter 3, "An Introduction to C++"
-
- #include <iostream.h>
-
- int main()
-
- {
- int pounds;
- int total, bags;
- pounds = 50;
- bags = 1000;
- total = bags * pounds;
- cout << "There are " << total << "lbs. in 1000 bags of beans\n";
- return 0;
- }
-