Can somebody tell me the difference between "while" and "do while"?

What is the different between do while loop and while loop?

btw, seeking help for your homework? bro, just google it

1 Like

no bro this is basic C past papers thank you

while is mainly used when we dont know how many times our loop will run…
example–>while(n) {…n–} here condtion will be false when n=0.
do while is used when we want to run loop at least once, rest functionality is same.

//