topical media & game development

talk show tell print

basic-program-solutions-02-Soln2-1.c

? / basic-program-solutions-02-Soln2-1.c


  // Soln2_1.cpp
  include <iostream>
  using std::cin;
  using std::cout;
  using std::endl;
  
  int main()
  {
     int number;
  
     cout << "Enter a number: ";
     cin >> number;
     cout << "Thank you. Your number was "
          << number;
     cout << endl;
  
     return 0;
  }
  


(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.