Solved

How Many Times Does the Following Loop Run

Question 14

Multiple Choice

How many times does the following loop run?
Int i = 0;
Int j = 1;
Do
{
System.out.println("" + i + ";" + j) ;
I++;
If (i % 3 == 0)
{
J--;
}
}
While (j >= 1) ;


A) 1 time
B) 2 times
C) 3 times
D) 4 times

Correct Answer:

verifed

Verified

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

Related Questions