#include // The C++ input and output definitions. void main(void) { // declarations: int i; // A general purpose integer // executable statements: // Get integer i from the user: cout << "Enter an integer: "; cin >> i; // Print a message whether i is zero, postive, or negative; if (i == 0) cout << "You entered zero.\n"; else if (i == 1) cout << "You entered one.\n"; else if (i > 0) cout << "You entered a positive number.\n"; else cout << "You entered a negative number.\n"; // Print a final message: cout << "Have a nice day!\n"; }