First page Back Continue Last page Graphics
A Wasteful Habit
The if statement expects one statement in the true block.
So, if you use { } to define a block, the compiler can find the end of the block with the } and doesn' t need a ;
if ( x < 10 )
{
cout << x;
cout << “ dollars “ << endl;
} ;