write a program in java to prit the following pattern
1
22
333
4444
55555
Answers
Answered by
0
Answer:
class program
{
public void disp( )
{
for(int i=1;i<=5;i++)
{
for(int j=1;j<=5;j++)
{
System.out.print (i);
}
}
System.out.println();
}
}
Explanation:
Using nested loop
Similar questions