topical media & game development

talk show tell print

basic-program-code-02-Ex2-03.c

? / basic-program-code-02-Ex2-03.c


  // Ex2_03.cpp
  // Exercising output
  include <iostream>
  include <iomanip>
  
  using std::cout;
  using std::endl;
  using std::setw;
  
  int main()
  {
     int num1 = 1234, num2 = 5678;
     cout << endl;                                // Start on a new line
     cout << setw(6) << num1 << setw(6) << num2;  // Output two values
     cout << endl;                                // Start on a new line
     return 0;                                    // Exit program
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.