// File Name: ConditionalChaining.cpp #include using namespace std; // introduces namespace std for cout and cin // Program tests an integer to see if it is positive, negative, or 0. int main( ) { int num; cout << "Enter integer value: "; cin >> num; if( num > 0 ) { cout << "The number is positive." << endl; } else if( num < 0 ) { cout << "The number is negative." << endl; } else { cout << "The number is 0." << endl; } return 0; }