Computer Science, asked by sagarandugulla917, 4 months ago

b) Write down the format of "for loop".​

Answers

Answered by habibmoon555
1

Answer:

Syntax

●The init step is executed first, and only once. This step allows you to declare and initialize any loop control variables. ...

●Next, the condition is evaluated. ...

●After the body of the 'for' loop executes, the flow of control jumps back up to the increment statement. ...

●The condition is now evaluated again.

Answered by sarahkazim656
1
for-loop has two parts: a header specifying the iteration, and a body which is executed once per iteration. The header often declares an explicit loop counter or loop variable, which allows the body to know which iteration is being executed.
‎FOR · ‎Loop counters · ‎Additional semantics and ... · ‎Timeline of the for-loop
Similar questions