Tino APCS

Compound Statements

The statement executed in a control structure can be a block of statements, grouped together into a single compound statement.

A compound statement is created by enclosing any number of single statements by braces as shown in the following example:

if (expression) {
    statement1;
    statement2;
    statement3;
}
else {
    statement4;
    statement5;
    statement6;
}


Dark Mode

Outline