/* Filename: choice2.cpp Author: Br. David Carlson Br. Isidore Minerd Date: January 4, 2000 Modified: June 26, 2000; August 19, 2001; July 16, 2009 This program asks the user to enter a number and prints out a message stating whether or not it is positive. Tested with: Microsoft Visual C++ 6.0 Microsoft Visual C++ .NET Microsoft Visual Studio 2008 g++ under Linux */ #include using namespace std; int main(void) { int Num; cout << "Enter a number (integer): "; cin >> Num; cout << endl << Num; if (Num > 0) cout << " is positive" << endl << endl; else cout << " is not positive" << endl << endl; return 0; }