0

Where do we use do while loop?

29th Nov 2016, 6:26 PM
Jyoti Singh
Jyoti Singh - avatar
2 Answers
+ 2
In all situations where you want an algorithm/code to be run at least once, for example when you have an animation in a game which runs until the end of that game. Then you have to render the graphics at least once and then continue until some conditions are met.
29th Nov 2016, 6:37 PM
Kerem AdıgĂŒzel
Kerem AdıgĂŒzel - avatar
+ 2
for example it maybe use in program of ATMs,that means when you use an ATM, you should at least input once ;)
30th Nov 2016, 12:07 AM
Nima Moradi
Nima Moradi - avatar