•It is legal to
leave out braces if you only execute
one statement.
•
•if( x > y)
•cout << “x greater than y”;
•
•if( x > y )
• cout << “x greater than y”;
•else if
• cout << “x less than y”;
•
•
•
•
As soon as the
program finds one of the boolean expressions to be true is executes the
associated block of code and skips past the whole rest of the if … else
block.