Print the following in java:
Notice there are spaces between star symbols.
Attachments:
Answers
Answered by
0
I have a similar code.
public class JavaProgram
{
public static void main(String args[])
{
int i, j;
for(i=0; i<5; i++)
{
for(j=0; j<=i; j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Similar questions