adplus-dvertising
frame-decoration

Question

What is the output of the below Java program?
int time=50;
do
{
System.out.print(time + ",");
time++;
}while(time < 53)

a.

50,50,50,

b.

50,51,52,

c.

51,52,53,

d.

Compiler error

Posted under Java Programming

Answer: (d).Compiler error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the below Java program?