// Solution to Excercise 4.27: Determines the sign of an integer, \ // different indentation // mikhail nesterenko // 09/14/99 #include using namespace std; int main() { // inputs the integer int input; cout << "Enter the integer:"; cin >> input; if (input == 0) // if zero cout << "The number is zero" << endl; else if (input > 0) // if positive cout << "The number is positive" << endl; else // if negative cout << "The number is negative" << endl; }