home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP30-3.ZIP / EXAMPLES.ZIP / INTRO3.CPP < prev    next >
C/C++ Source or Header  |  1992-02-18  |  278b  |  16 lines

  1. //INTRO3.CPP--Example from Chapter 3, "An Introduction to C++"
  2.  
  3. #include <iostream.h>
  4.  
  5. int main()
  6.  
  7. {
  8.     int pounds;
  9.     int total, bags;
  10.     pounds = 50;
  11.     bags = 1000;
  12.     total = bags * pounds;
  13.     cout << "There are " << total << "lbs. in 1000 bags of beans\n";
  14.     return 0;
  15. }
  16.