if (expression) statement [elsestatement] switch (expression) statement
Description
A selection statement alters a program"s execution
flow by selecting one path from a collection based on a specified
controlling expression. The “if ”
statement and the “switch ”
statement are selection statements.
Examples
if (expression) statement: if (x<y) x=y;
if (expression) statement else statement: if (x<y) x=y; else y=x;