Computer Science, asked by rinkurajeshkhare, 3 months ago

IS USED TO SET INITIAL OR STARTING
VALUE OF THE CONTROL VARIABLE.
LOOPING
INTIALISATION
STOP
SINGLE​

Answers

Answered by gagandeesingh2008
0

Answer:

Loop

Explanation:

Computers are great to perform repetitive tasks.

When is repetition needed? There are many cases, one of the the most common is when processing lots of data. Examples: resizing or adjusting the color of every frame in a video, changing the pitch of every tone in an audio file, accruing interest earned on every account in a bank, etc.

Loop statements usually have four components: initialization (usually of a loop control variable), continuation test on whether to do another iteration, an update step, and a loop body.

While loop, see book for examples:

Initialization: loop control variables and other variables necessary in the loop are assigned initial values. This initialization step is done prior to the while statement.

Continuation test: this boolean condition is the only thing specified inside of the parenthesis of the while statement. When the condition evaluates to true, the body of the loop executes. When it is false, the loop ends and execution will resume with the statement after the entire loop.

Loop body and update step: the loop body is the sequence of statements executed when the boolean test is true. These statements (almost always) include a statement that updates a loop control variable (or some other variable) that is used in the boolean test. Failure to do this update step correctly may result in an infinitely executing loop.

HOPE IT HELPS

MARK AS BRAINLIEST

Similar questions