Control Flow
Exit Slides

Summary

control_flow directs the order of execution. Remember the core ideas: sequence runs statements line by line; selection uses if_else or switch_statement based on a boolean_expression; iteration repeats with for_loop, while_loop, or do_while. In while_loop and for_loop, the condition checks before the body; do_while checks after. Conditions compare values with relational_operators and combine results with logical_operators. A switch_statement can use a default_case and break to prevent fallthrough. Use continue, return, and blocks for block_scope.
Slide 1 / 2