Q. What is the output of the below Java program?
Code:int a=1;
while(a<4)
{
System.out.print(a + " ");
a++;
}
β
Correct Answer: (B)
1 2 3
int a=1;
while(a<4)
{
System.out.print(a + " ");
a++;
}
You must be Logged in to update hint/solution