#include using namespace std; int main() { // Holds the number the user will enter. int x; // Check numbers for positive, negative, or zero. while(true) { // Have the user enter in a number. cout << "Enter in a number: "; cin >> x; // Test the sign of the number. if(x>0) { cout << "Positive" << endl; } else if(x<0) { cout << "Negative" << endl; } else if(x==0) { cout << "Zero" << endl; } } return 0; }