Solved

What Is the Output of This Loop

Question 104

Multiple Choice

What is the output of this loop?
Int i = 0;
Boolean found;
While (i < 20 && !found)
{
Int sum = i * 2 + i * 3;
System.out.print(sum + " ") ;
If (sum > 50)
{
Found = true;
}
I++;
}


A) 0 5 10 15 20 25 30 35 40 45 50 55
B) 0
C) No output, compilation error
D) 0 5 10

Correct Answer:

verifed

Verified

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

Related Questions