Example Program (continued)
- C program:
if (light == GREEN)
else if (light == RED)
else if (light == YELLOW)
- Depending on the state of the variable “light”, one of the three mutually exclusive statements will be executed
- Complete control of the execution sequence by the programmer