While Loop Execution Count
How many times does the while-loop execute in the given code?
int i = 0;
while (i < 10 && i != 5) {
i++;
}
A
10
B
6
C
5
D
4
Question Leaderboard
Not enough data yet to show leaderboard.
How many times does the while-loop execute in the given code?
int i = 0;
while (i < 10 && i != 5) {
i++;
}
10
6
5
4
Not enough data yet to show leaderboard.