Save
...
Computer Programming 2
Week 2 to 3 C++ Programming Fundamentals Review
Iteration Structure
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Marc
Visit profile
Cards (8)
An
iteration structure
repeats a certain set of statements multiple times.
An iteration structure repeats a
certain set
of statements multiple times.
An iteration structure repeats a certain set of statements
multiple times.
Types of loop:
for
while
do-while
for loop
syntax
for (initialization; condition; increment/decrement) {
// Code to be executed repeatedly
}
while loop
syntax
while (condition) {
// Code to be executed repeatedly
}
do-while loop
syntax
do {
// Code to be executed repeatedly
} while (condition);
What structure is in the picture?
Iteration Structure