write a program write a program to displày the following
1 * * * *
1 2 * * *
1 2 3* *
1 2 3 4 *
1 2 3 4 5
answer it fast today is my practical
Answers
Answered by
0
System.out.println(); } }
public class KboatPattern{ public static void main(String args[]) { for (int i = 1; i <= 5; i++) { for (int j = i; j >= 1; j--) { System.out.print(j + " "); } System.out.println(); } }}
Similar questions