Computer Science, asked by yash2870, 11 months ago

syntax of do while loop

Answers

Answered by nivedithagirish24
0

Answer: The syntax of do while loop is do (statement) while (condition)

Hope this was helpful enough, please mark me brainliest!!

Answered by stylishtamilachee
5

Answer:

The Syntax of the do-while loop is:

do { statement ;

}

while (test-expression) ;

Explanation:

The braces { } Are not necessary when the loop-body contains a single statement.

The do-while loop:

  • Unlike the for and while loops, the do-while loop is an exit-controlled loop that is, it evaluate its test-expression at the bottom of the loop after executing its loop-body statements.
  • This means that a do-while loop always executes at least once.
  • In the other two loops for and while, the test-expression is evaluated at the beginning of the loop i.e., before executing the loop-body.
Similar questions