For Loop Execution Trace
What is printed as a result of executing the following code segment?
for (int i = 200; i > 0; i /= 3)
{
if (i % 2 == 0)
System.out.print(i + " ");
}
A
66 22 7 2
B
200 66 22 7 2
C
200 66 22 2
D
200 66 22
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | hitrishabhatia | 1 | 4 | 0m 00s | 70 |
| #2 | busemagngr | 1 | 1 | 0m 38s | 62 |
| #3 | y.seong2027 | 1 | 2 | 1m 34s | -4 |
Items per page:
10
1 – 3 of 3
