Computer Science, asked by amirb9434449219, 3 months ago

3. Give the syntax of the DO loop. Also describe the syntax of the two variants of
loop.​

Answers

Answered by khannazmin850
1

Answer:

Notice that the conditional expression appears at the end of the loop, so the statement(s) in the loop executes once before the condition is tested. If the condition is true, the flow of control jumps back up to do, and the statement(s) in the loop executes again

Syntax of a For Loop

The initialization statement describes the starting point of the loop, where the loop variable is initialized with a starting value. A loop variable or counter is simply a variable that controls the flow of the loop. The test expression is the condition until when the loop is repeated

Similar questions