What is the output of the code below?
for (int I =1; I<5; I++)
{
for (int j=1; j<=i; j++)
{
System.out.print("* ");
}
System.out.println();
}
![]() |
What is the output of the code below?
for (int I =1; I<5; I++)
{
for (int j=1; j<=i; j++)
{
System.out.print("* ");
}
System.out.println();
}
A bunch of "* ", on many different lines.
What do you think the output will be?
All times are GMT -7. The time now is 12:20 PM. |