Question: Question 1 9 ( Mandatory ) ( 1 point ) What is a difference between a while and a do . . . while loop?
Question Mandatory point
What is a difference between a while and a do while loop?
A do while loop tests its conditional statement before the loop body is executed whereas a while loop only tests its conditional statement after the loop body is executed.
A while
loop tests its conditional statement before the loop body is executed whereas a do while loop only tests its conditional statement after the loop body is executed. A while
loop needs a counter whereas a do while loop does not need a counter.
A do while loop needs a counter whereas a while loop does not need a counter. none of the above
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
