<aside> <img src="/icons/home_green.svg" alt="/icons/home_green.svg" width="40px" />

Back to Home

</aside>

https://jennychen9827sbu.github.io/CAD281/controlStatement

Control Statements - Taylor Series

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);
}