Which of the following is the while loop syntax?
#. while condition
# body_of_while
b. while condition:
# body_of_while
c. while condition
{
# body_of_while}
Answers
Answered by
3
Answer:
while loop in C programming language is as follows: do { statements } while (expression); As we saw in a while loop, the body is executed if and only if the condition is true. In some cases, we have to execute a body of the loop at least once even if the condition is 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
Political Science,
3 months ago
Math,
3 months ago
English,
6 months ago
Math,
6 months ago
World Languages,
11 months ago
History,
11 months ago