Solved

What Is the Output of the Following Code Snippet

Question 11

Multiple Choice

What is the output of the following code snippet?
Int i = 1;
While (i < 10)
{
System.out.print(i + " ") ;
I = i + 2;
If (i == 5)
{
I = 9;
}
}


A) 1 3 5
B) 1 3 9
C) 1 3 5 7 9
D) 1 3 5 9

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions