It is generally recommended to use other control structures and loop statements whenever
possible.
2.11 THE CONCEPT OF LOOPS—WHILE LOOP, DO-WHILE LOOP, FOR
LOOP, NESTED LOOPS, BREAK STATEMENT, CONTINUE
STATEMENT
A loop is a part of a program that repeats.
A
loop is a control structure that causes a statement or
group of statements to repeat.
C has three types of looping structures:
(a) while loop
(b) do-while loop
(c) for loop
Let us discuss these one by one now.
Do'stlaringiz bilan baham: