The
for loop
•
•Early programmers used goto statements to accomplish the same tasks as while and for loops but there are many different ways to do the same kind of loop with goto.
•For and while loops constrain the sorts of code you are likely to see and make it easy to recognize right away what the programmer is trying to do.