// File Name: ConditionalIfElse.cpp #include using namespace std; // introduces namespace std for cout and cin // Program tests an integer to see if it is even or odd int main( ) { int num; cout << "Enter integer value: "; cin >> num; if( num % 2 == 0 ) { // What to do when num is exactly divisible by 2. cout << "The number is even." << endl; } else { // What to do when num is NOT divisible by 2. cout << "The number is odd." << endl; } return 0; }