Computer Science, asked by AMITKUMARfbln, 9 months ago

what are the four parts of loop​

Answers

Answered by Shairin
9

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.

Answered by Anonymous
14

The looping structure contains the following parts :-

  • Control Variable - A variable, which starts with an initial value and determines the duration of the repetition is known as control variable or initial variable.
  • Body of the loop - A set of statements, which are executed within the loop simultaneously.
  • Test Condition - Each loop contains a test condition. Whether the loop has to be repeated or terminated, depends upon the test condition. The control enters the body of the loop for execution till the test condition is true, otherwise it terminates.
  • Step value - The step value in a looping structure determines the increment or decrement of the control variable unless the test condition is false.

Hope it helps you dearr...

mark as brainliest plzz ❤️❤️

Similar questions