Solved

What Is the Output of the Following Code Snippet

Question 68

Multiple Choice

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


A) 1 3 5 7 9 11 13 15 17 19
B) 1 3 5 7 9 11 13 19
C) 1 3 5 7 9 11 13 15 17
D) 1 3 5 7 9 11 13 17 19

Correct Answer:

verifed

Verified

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

Related Questions