KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Applications

Give two differences between do-while and while loop

Java Iterative Stmts

15 Likes

Answer

do-whilewhile
do-while is an exit-controlled loopwhile is an entry-controlled loop
do-while is suitable when we need to display a menu to the user.while loop is helpful in situations where numbers of iterations is not known.

Answered By

10 Likes


Related Questions