+ 2

What's the difference between for loop and while loop ?

Guys tell me differences between for loop and while loop

4th Dec 2017, 10:57 AM
Samarth H Chinivar
Samarth H Chinivar - avatar
5 Answers
+ 3
do until loop is also known as do while loop ...
4th Dec 2017, 2:34 PM
Samarth H Chinivar
Samarth H Chinivar - avatar
+ 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
23rd Dec 2017, 11:10 PM
Daniel David DĂ­az GonzĂĄlez
Daniel David DĂ­az GonzĂĄlez - avatar
+ 3
Nice Explanation .. Got clear view about this answer
24th Dec 2017, 2:19 AM
Samarth H Chinivar
Samarth H Chinivar - avatar
+ 3
Thanks
24th Dec 2017, 7:25 PM
Daniel David DĂ­az GonzĂĄlez
Daniel David DĂ­az GonzĂĄlez - avatar
+ 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.
4th Dec 2017, 11:41 AM
Amir Galanty
Amir Galanty - avatar