6. "If Statements" 2025 Winter APS105 Section 3 (University of Toronto)
Jon Eyolfson
The lecture introduces "if statements" as a fundamental mechanism to move beyond writing boring, repetitive programs by enabling conditional execution of code. In C programming, an if statement allows the computer to evaluate a Boolean expression—resulting in either true (1) or false (0)—and execute …