Solved

What Is the Output of This Code Snippet

Question 70

Multiple Choice

What is the output of this code snippet?
Int s = 1;
Int n = 1;
Do
{
S = s + n;
System.out.print(s + " ") ;
N++;
}
While (s < 3 * n) ;


A) 2 4 7 11 16 22
B) 1 3 5 7 9
C) 2 3 5 6 7
D) 2 4 6 8

Correct Answer:

verifed

Verified

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

Related Questions