<aside> <img src="/icons/home_green.svg" alt="/icons/home_green.svg" width="40px" />
</aside>
https://jennychen9827sbu.github.io/CAD281/controlStatement
Definition: Control the flow of execution (e.g., decisions and loops).
Examples:
// if-else
int score = 85;
if (score >= 60) {
printf("Passed\n");
} else {
printf("Failed\n");
}
// for loop
for (int i = 0; i < 3; i++) {
printf("i = %d\n", i);
}
for loop that prints numbers from 10 to 1.