In what sequence the initialization,testing and execution of body is done in a do whiled loop
Answers
Answered by
1
If you are taking it for Java language then,
Initialization is done outside the do-while loop and you can see this pic for execution for the same
Initialization is done outside the do-while loop and you can see this pic for execution for the same
Attachments:
Answered by
0
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
Computer Science,
7 months ago
History,
7 months ago
Chemistry,
1 year ago
Hindi,
1 year ago
Hindi,
1 year ago