Computer Science, asked by ALBERT20, 1 year ago

which statment combines the initialization and checking steps of counters in single statment?

Answers

Answered by nancyyy
21
Answer is "for statement".
Answered by Anonymous
7

For Loop combines the initialization and checking steps of counters in single statement.

Syntax of for loop: for ( initialization; condition; counter )

  • Initialization is done only in the start and once.
  • Then the condition is evaluated and if the condition is satisfied.
  • The counter is updated.
  • Step 2 and step 3 are in a loop until the condition becomes false
  • then the loop is exited.
Similar questions