Computer Science, asked by Rushque9438, 11 months ago

what is the relationship between loop invariant, loop condition and the input -output recursively.​

Answers

Answered by suraj9751
0

Answer:

A single execution of the loop body is called an iteration. The loop in the example above makes three iterations.

If i++ was missing from the example above, the loop would repeat (in theory) forever. In practice, the browser provides ways to stop such loops, and in server-side JavaScript, we can kill the process.

Any expression or variable can be a loop condition, not just comparisons: the condition is evaluated and converted to a boolean by while.

For instance, a shorter way to write while (i !=

Similar questions