Computer Applications
What are the parameters needed to create a for loop?
Java Iterative Stmts
117 Likes
Answer
The following parameters are commonly used in a for loop:
- An initial value for the loop control variable.
- A condition—loop will iterate as long as this condition remains true.
- An update expression to modify the loop control variable after every iteration.
- Body of the loop which consists of the statements that needs to be repeatedly executed.
Answered By
70 Likes