Computer Science, asked by chatterjeepriyanka47, 11 days ago

a loop must have a starting condition and also what condition

Answers

Answered by pranita30
0

Answer:

In while loop, a condition is evaluated before processing a body of the loop. If a condition is true then and only then the body of a loop is executed. ... while loop, the condition is always executed after the body of a loop. It is also called an exit-controlled loop.

Explanation:

do { // loop body } while (condition); The loop will first execute the body, then check the condition, and, while it's truthy, execute it again and again. ... This form of syntax should only be used when you want the body of the loop to execute at least once regardless of the condition being truthy.

Similar questions