Log in

View Full Version : Java Code Help


BellaElvyra
Aug 7, 2015, 08:29 AM
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();
}

CravenMorhead
Aug 7, 2015, 12:24 PM
A bunch of "* ", on many different lines.

What do you think the output will be?