For Loop Iteration Count
How many times will the body of the for loop execute in the following code segment?
int count = 0;
for (int i = 0; i < 10;) {
count++;
i += 2;
}
System.out.println(count);
A
6
B
10
C
4
D
5
Question Leaderboard
Not enough data yet to show leaderboard.
