KnowledgeBoat Logo

Computer Applications

Distinguish between while and do-while loop.

Java Iterative Stmts

ICSE 2018

78 Likes

Answer

whiledo-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

53 Likes


Related Questions