Baheeg Training and Test Exam

Java beginner level

Score: 0 / 0 answered

Progress: 0 of 942 qs

time elap: 00:00

Question 1: What is the output of the following code snippet?

int i = 10;
while (i > 0) {
    System.out.print(i + " ");
    i -= 2;
}