Computer Applications
Distinguish between while and do-while loop.
Java Iterative Stmts
ICSE 2018
100 Likes
Answer
| while | do-while |
|---|---|
| It is an entry-controlled loop. | It is an exit-controlled loop. |
| It is helpful in situations where numbers of iterations are not known. | It is suitable when we need to display a menu to the user. |
Answered By
66 Likes