Computer Applications
Give one difference between while and do while loop.
Java Iterative Stmts
30 Likes
Answer
while | do-while |
---|---|
It is an entry-controlled loop. | It is an exit-controlled loop. |
It is helpful in situations where number of iterations are not known. | It is suitable when we need to display a menu to the user. |
Answered By
22 Likes