Learn C: Conditionals and Loops


Why Learn C: Conditionals and Loops?

Continue your C learning journey! Writing programs that can handle decision-making sets you up to make powerful, interesting programs. You will also learn how to use for and while loops to execute the same code multiple times.

Take-Away Skills

By the end of this course, you will be able to:

  • Control the program flow using if, else if, else, switch, and ternary operators
  • Perform repetitive actions using for, while, and do-while loops
  • Recognize basic errors, including compile-time and run-time errors

Notes on Prerequisites

We recommend that you complete Learn C: Variables and Operators before completing this course.

Codecademy courses have been taken by employees at

Google LogoFacebook LogoNASA LogoIBM LogoDropbox Logo
  1. 1
    Learn about conditionals in C.
  2. 2
    Learn about loops and errors in C.

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo

— Madelyn, Pinterest

I know from first-hand experience that you can go in knowing zero, nothing, and just get a grasp on everything as you go and start building right away.

Course Description

Learn about conditionals and loops in C.


Earn a certificate of completion
4 hours to complete in total

Learn about conditionals in C.

1 lesson, 1 article, 1 quiz, 1 project, 1 informational