Differences between while and do–while loops

While Loop:

It is a looping construct that will execute only it the test condition is true.

It is an entry-controlled loop.

It is used for implementing common looping situations.

do-while Loop:

It is a looping construct that will execute at least once even if test-condition is false.

It is an exist controlled loop.

It is used for implementing basic proms where the mere is required to be printed after once.

Related

Java 8478615083603564612

Post a Comment

emo-but-icon

item