Computer Science, asked by japagangadhar6193, 1 year ago

print ICSE pattern IN JAVA

Answers

Answered by aadi2134
1

1

22

333

4444

55555

Java Program :

public class pattern_1

{

public static void main()

{

int i,j;

for(i=1;i<=5;i++)

{

for(j=i;j>=1;j--)

{

System.out.print(i);

}

System.out.print("\n");

}

}

}

Output :

1

22

333

4444

55555

Similar questions