EZ

Eduzan

Learning Hub

Eduzan
Eduzan / C++

Control Structures in C++

Worked examples are fully visible. Check-yourself items are study aids you can reveal one at a time.

Control structures determine the order in which statements execute in a program. They allow a program to make decisions, repeat tasks, and respond to different conditions.

For example, a program can use control structures to check whether a student has passed an exam, display numbers from 1 to 10, or process every item in a shopping cart.

In this chapter, you will learn how to use conditional statements, loops, and jump statements in C++.

End of lesson.