Q. What is the output of the below java program that implements nesting of loops?
Code:int i=1, j=1;
while(i<3)
{
do
{
System.out.print(j + ",");
j++;
}while(j<4);
i++;
}
β
Correct Answer: (B)
1,2,3,4,