Solved

What Is the First and Last Value of I to Be

Question 18

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:

verifed

Verified

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

Related Questions