+ 9

Why we use "Until" when "While" can do same ?

The question says all.

4th Jun 2017, 3:04 AM
Ekansh
2 Answers
+ 7
While will run the loop when the condition is true and breaks as soon as it becomes false. Until will run the loop when the condition is false and breaks as soon as it becomes true
4th Jun 2017, 3:40 AM
Siddharth Saraf
+ 1
no both are different. just opposite
6th Jun 2017, 7:49 AM
Player
Player - avatar