which statment combines the initialization and checking steps of counters in single statment?
Answers
Answered by
21
Answer is "for statement".
Answered by
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