Solved

What Is the Output of the Code Snippet Given Below

Question 25

Multiple Choice

What is the output of the code snippet given below?
Int i = 0;
While (i != 11)
{
System.out.print(i + " ") ;
I = i + 3;
}


A) No output
B) 0 3 6 9 12 15 18
C) 0 1 3 5 7 9
D) 0 3 6 9 …. (infinite loop)

Correct Answer:

verifed

Verified

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

Related Questions