Social Sciences, asked by biswajyotideori0042, 4 months ago

difference between while and do-while loop ?​

Answers

Answered by siddh4552
5

Answer:

do-while loop is similar to while loop, however there is a difference between them: In while loop, condition is evaluated first and then the statements inside loop body gets executed, on the other hand in do-while loop, statements inside do-while gets executed first and then thecondition is evaluated.

Answered by gurj57364953
52

\sf\large\red{\underline \bold{QUESTION?}}

Difference between while and do-while loop ?

\sf\small\blue{\underline \bold{ANSWER!!}}

Here, the main difference between a while loop and do while loop is that while loop check condition before iteration of the loop...✍️

On the other hand, the do-while loop verifies the condition after the execution of the statements inside the loop...✍️

Furthermore, the while loop is known as the entry-controlled loop...✍️

\sf\large\orange{\underline{\underline{Hope\: It \: Helps\:!!}}}

\sf\large\red{\underline{\underline{Mark\: It \: As\: Brainliest...}}}

Similar questions