Computer Science, asked by nitishkumar9922, 10 months ago

How many times is a do while loop guaranteed to execute mcq?

Answers

Answered by Anonymous
7

Do while loop is often used in java. It works according to the information given. It executes as many times as possible. If here is no such preferable circumtances though too it executes at least one time.

In the other hand for loop too works as per the instructions given and also executes as much time as possible but, it is unlike from the do while loop because, if there is no preferable condition then it never executes.

It is because in case do while loop at first we declare about the task then the condition but in case of for loop at first we declare the condition then the task.

Similar questions