ProAnswers.org

what is 10 diffrence between while and do while loop with programming

1 Like

The While and do While is having only one difference that is in While first we write condition and then enter into the loop

where as do While first it will enter into the loop and then check the condition…

eg:

while(condition)

{

//piece of code

}

do

{

//piece of code

}while(condition)