About Compound Statements
A compound statement is a sequence of reserved words that combine expressions and statements into a logical group that performs a specific task.
For example, the if compound statement has the format
Although there are numerous ways you can combine compound statements to create a complete application, there are only a small number of distinct statement types.