Question: What is the difference between a while loop and a do - while loop? A while loop evaluates its controlling boolean expression before the body
What is the difference between a while loop and a dowhile loop?
A while loop evaluates its controlling boolean expression before the body is
executed. A dowhile loop evaluates its controlling boolean expression after
the loop is executed.
A while loop evaluates its controlling boolean expression after the body is
executed. A dowhile loop evaluates its controlling boolean expression before
the loop is executed.
A while loop continues as long as the controlling boolean expression is true. A
dowhile loop continues as long as the controlling boolean expression is false.
A while loop continues as long as the controlling boolean expression is false. A
dowhi le loop continues as long as the controlling boolean expression is true.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
