If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Tracing Problems

Problem

What does the following code output?
for (int i = 0; i < 10; i++) {
   System.out.print(i + 1);
}
Choose 1 answer: