Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
medium Solved by 2 students

For Loop Execution Trace

< Prev
Next >

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

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question
Mark for review

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|