Reviewer in Comp Prog
Reviewer in Comp Prog
● Increment(++)/Decrement(--)
Operators - illustrates the difference
4. Nested if - means that an if
statement is inside an if
statement
Control Structure
● refers to the order of execution of
instruction in a program
● Allow non-sequential execution of
program instructions
● Instruction of a whole block of
instruction can be executed, repeated ● Switch Statement - used to
or skipped perform different actions
based on different conditions
Types of Control Structure
● Conditional Statement - used to
perform different actions based on
different conditions
1. if - specifies that a statement
will be executed if and only if a
certain boolean statement is
true