/* Using if/else statements */ #include using namespace std; int main() { int num1; cout << "Enter an integer, and I will tell you "; cout << "if the number is positive: "; cin >> num1; // read an integer if (num1 > 0) cout << num1 << " is positive. "<< endl; else cout << num1 << " is not positive. "<< endl; return 0; }