COMP SELECTION STATEMENT Flashcards
If (expression)
{
Statement 1;
Statement 2;
:
Statement 3;
}
One Way Selection Statement
{
Statement 1;
Statement 2;
Statement 3;
}
Compound Selection Statement
If (expression)
Statement1;
Else
Statement2;
Two Way Selection Statement
f the value is true, the statement 1 is executed, If false, statement 2 is executed
Two Way Selection Statement
A collection of individual program statements which are separated by semicolons that have been grouped together in a block enclosed with braces {}.
Compound Selection Statement
If the value of the expression is true, the statement is executed, If false, the statement is not executed and the computer goes on the next statement in the program.
One Way Selection Statement