Then we go on to whatever follows next after the if statement. In this case, we print out the value of Num . Should you want to have multiple statements governed by the if , you package up those statements as a block by placing curly braces around them. We will look at an example of that shortly. If the value of Num is not positive, then the assignment statement is skipped.
Control passes on to the output statement that follows.
Now consider the following similar example. This time the if selects whether or not to do an entire block of code, which is enclosed in curly braces. The curly braces should line up vertically. That way one can easily see where this important section of code begins and ends. See the example choice1.cpp .