#include #include using namespace std; int main() { int n {0}; cout << "Please type a number: "; cin >> n; if (!cin) { cerr << "Sorry, that wasn't a valid number.\n"; return EXIT_FAILURE; } if (n < 0) { cout << "The number is negative.\n"; } if (n == 0) { cout << "The number is zero.\n"; } if (n > 0) { cout << "The number is positive.\n"; } return EXIT_SUCCESS; }