+ 6
What are all the loop types?
i want to know what kind of loops i can use for my program.
6 Réponses
+ 34
You can use for, foreach, while or do-while loop, but it depends on a situation and your needs what loop to choose. Switch is not a loop btw, it is used to perform different actions based on different conditions.
+ 8
for
while
do while
goto //C++
I really dunno what language....do you mention about.....
Because One language can make loops with many ways....(As @Igor type.foreach is certainly the one way)
+ 5
Can also loop with recursion.
+ 3
for , while , do while
+ 2
do while fits nicely, thanks!
0
for loop