•--------------------------------------------------------•
•Repetition statements are called loops, and are used to repeat the same code mulitple times in succession.
•The number of repetitions is based on criteria defined in the loop structure, usually a true/false expression
The three loop structures in C++ are:
°while loops
°do-while loops
°for loops
•Three types of loops are not actually needed, but having the different forms is convenient
•---------------------------------------------------------•
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
ANSWER.
Control Sructures - Repetition
Repetition Statements
•--------------------------------------------------------•
•Repetition statements are called loops, and are used to repeat the same code mulitple times in succession.
•The number of repetitions is based on criteria defined in the loop structure, usually a true/false expression
The three loop structures in C++ are:
°while loops
°do-while loops
°for loops
•Three types of loops are not actually needed, but having the different forms is convenient
•---------------------------------------------------------•