+ 2
What's the difference between for loop and while loop ?
Guys tell me differences between for loop and while loop
5 Answers
+ 3
do until loop is also known as do while loop ...
+ 3
Hello, cycle or loop FOR is used when we have clear a starting point and a point of completion. the loop WHILE, unlike FOR, is used when we don't know when will end a condition given a clear example can be when the user wants to continue doing something repeatedly until Press n. Loop DO WHILE it is almost equal to the previous, with the difference that the condition given runs at least once. I hope serve help is explanation, if you liked vote. thank you very much, Merry Christmas
+ 3
Nice Explanation .. Got clear view about this answer
+ 3
Thanks
+ 2
for - start, condition, size of iteration.
while - as long as condition is true, keep repeating the loop
some languages have also -
do until loop - like while, but the code inside the loop will run at least once.