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:

Verified
Correct Answer:
Verified
Related Questions
Q65: For which input values will the following
Q66: What is the output of the following
Q67: What is the output of the code
Q68: What is the output of the following
Q69: Suppose that a program asks a user
Q71: What changes do you need to make
Q72: What is the output of the following
Q73: Which statement is correct about the execution
Q74: How many times does the following loop
Q75: What will be printed by the statements