The Difference Between While Loop And Do While Loop?

I know the difference that do while loop will execute once without checking condition but what exactly the use of Do while loop over the while loop ???
I mean why even Do while loop was needed at all

There are a handful of occasions where a do while loop is handy, but it’s not a very commonly used loop.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.