for (i = 5; i <= 100; i = i + 5) { System.out.println(i); }
Click an option to check whether your answer is correct.
Explanation:
In this loop, the variable i increments by a fixed step (i = i + 5) in each iteration.
Such a loop is called a step loop because it progresses by a specific step val
ue.
Explore more questions from similar topics.
Share this MCQ with your friends or study group.