Advertisements
Advertisements
Question
What are the parameters used in for loop?
Answer in Brief
Solution
The parameters of a 'for' loop are as follows:
- Starting point for the loop variable
- "Test scenario" (The loop's body only runs when the condition is actual).
- Step value (increment or decrement to change the loop variable's value).
shaalaa.com
Is there an error in this question or solution?
Chapter 1.09: Iterative Constructs in Java - EXERCISES [Page 124]