Write a java program to get the following output
Attachments:
Answers
Answered by
3
for(int i=1; i<=5; i++)
{ system.output.println();
for(int j=5; j>i ;i--)
sustem.output.print(" ");
for(int k=1;k<=i;k++)
system.output.print(i);
}
Similar questions