Electrical and Computer Engineering
10 of 23
UAH
CPE 112
How to Design Loops
•Points to Consider
–What is the condition that ends the loop?
–How should the condition be initialized?
–How should the condition be updated?
–What is the process being repeated?
–How should the process be initialized?
–How should the process be updated?
–What is the state of the program on exiting the loop?