Explain the syntax of do ..while loop and while loop in c++
Answers
Answered by
4
while loop is executed once before the condition is checked. Its syntax is: do { // body of loop; } while (condition); ... If the condition evaluates to true , the body of the loop inside the do statement is executed again.
Similar questions