Lesson 3 of 5 25 min

Control Flow

Master if/else, switch, while, for, and do-while. Learn how to structure decision-making and iteration in C programs.
c
for (int i = 1; i <= 5; i++) {
    printf(i % 2 == 0 ? "even\n" : "odd\n");
}
← Variables, Types & Operators