Computer Science, asked by sitasinghg81, 6 months ago

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 aayushi134
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 Anonymous
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