Solved

What Is the Output of the Following Code Snippet

Question 32

Multiple Choice

What is the output of the following code snippet?
Int counter = 1;
For (double i = 0.01; i <= 1.0; i = i + 0.01)
{
Counter++;
}
System.out.println(counter) ;


A) 100
B) 49.50
C) 60.5
D) 10

Correct Answer:

verifed

Verified

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

Related Questions