Skip to main content
Lesson 8 - Structured Programming, Control Structures, if-else Statements, Pseudocode
ZIPPDF (letter)
Lesson MenuPreviousNext
  
Compound Statements page 10 of 15

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

  2. 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;
    }

Lesson MenuPreviousNext
Contact
 ©ICT 2003, All Rights Reserved.