Which of the following loops will execute the body of loop even when
condition controlling the loop is initially false?
a) do-while
b) while
c) for
d) none of the mentioned
Answers
Answered by
7
Answer:
a)do-while
In some cases, we have to execute a body of the loop at least once even if the condition is false. This type of operation can be achieved by using a do-while loop. In the do-while loop, the body of a loop is always executed at least once. After the body is executed, then it checks the condition.
Hope this will help you❣️
Answered by
0
Answer:
do-while please mark as brainliest
Similar questions
Math,
2 months ago
Computer Science,
2 months ago
Math,
4 months ago
Math,
11 months ago
English,
11 months ago