Skip to content
KALANBLON
Beginner1 h 35Free

C: deciding and repeating

Teach your C program to make decisions with if and switch, to read what the user types with scanf, and to repeat actions with while and for, without falling into the language's classic traps.

Start the course

0 / 6 chapters completed

What you'll be able to do

  • Write conditions with if, else if, else and switch
  • Combine conditions with &&, || and !
  • Read a number typed on the keyboard with scanf and check that the input succeeded
  • Repeat instructions with while, do while and for
  • Spot and fix an infinite loop or an off-by-one error

Course outline