3. Which of the following loops will execute the body of the loop even
when the condition controlling the loop is initially false?
O for
O step loop
O While
O do-while
Answers
Answered by
2
A Do-While loop will execute the body of the loop even when the condition controlling the loop is initially false.
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,
3 months ago
History,
7 months ago
Math,
7 months ago
Business Studies,
11 months ago
Math,
11 months ago