6-5 Loops in C: While For Do While
6-5 Loops in C: While For Do While
6-5 Loops in C: While For Do While
C has three loop statements: the while, the for, and the
do…while. The first two are pretest loops, and the
the third is a post-test loop. We can use all of them
for event-controlled and counter-controlled loops.