Solved

How Many Times Is the Text "Let's Have Fun with Java

Question 23

Multiple Choice

How many times is the text "Let's have fun with Java." printed when this code snippet is run?
Int i = 0;
Do
{
System.out.println("Let's have fun with Java.") ;
I++;
If (i % 2 == 0)
{
I = 10;
}
}
While (i <= 10) ;


A) 1
B) 2
C) 3
D) 10

Correct Answer:

verifed

Verified

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

Related Questions