If the boolean expression is true, execute the statement.
Normal usage
if (boolean expression) {
statements;
}
Be careful on this one without code blocks.
What will be the result of this code?:
int x = 7;
if (7 == x)
cout << "x is 7" << endl;
x = 14;
cout << x << endl;
Write a program which asks for an hourly wage, hours worked and if the person receives overtime pay if they exceed 40 hours a week. Print their pay. (overtime.C)