Practice Test Geeks home

SCJP Flow Control (Loops, Branching, and Labeled Statements)

What is the output of the following code?
int x = 5;

do {

System.out.print(x + " ");

x--;

} while (x > 5);

Select your answer