Starlit Daily

📚 › C

3. Conditions and loops

if, else and switch make decisions. for and while repeat code. Braces group the lines that belong to a block.

Show example

for (int i = 1; i <= 3; i++) {
  printf("%d\n", i);
}

← Back to course