Multiple Choice
What is the first and last value of i to be displayed by the following code snippet?
Int n = 20;
For (int i = 0; i <= n; i++)
{
For (int j = 0; j <= i; j++)
{
System.out.println("" + i) ;
}
}
A) 0 and 20
B) 1 and 20
C) 0 and 19
D) 1 and 19
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q13: What is the output of the code
Q14: How many times does the following loop
Q15: What is the output of the following
Q16: What is the output of the code
Q17: What will be printed by the statements
Q19: The process of hand-tracing code is valuable
Q20: What will be printed by the statements
Q21: Is the code snippet written below legal?
Q22: Assume the following variable has been declared
Q23: How many times is the text "Let's