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