#include // The C++ input and output definitions. void main(void) { int i; cout << "Enter an integer: "; cin >> i; // What you should do: *do* the cout if i == 0: if (i == 0) cout << "You entered zero.\n"; // What some students want to do: *skip* the cout if i != 0 (UNALLOWED): if (i != 0) goto skip; cout << "You entered zero.\n"; skip: // Another way of doing this (UNALLOWED): if (i != 0) ; else cout << "You entered zero.\n"; // If the if's statement is blank, invert the condition. // What some students want to bring inside the if-construct: if (i == 0) cout << "You entered zero.\n"; else cout << "Have a nice day!\n"; // Inside the ifs: *sometimes* executed }