Let's Learn Java Programming..... Through Lots of Coding Examples For Each Topic. Now Go For It ..!
How to Print this pattern 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 class P9 { public static void main(String args[]) { int i, j; for(i=5; i>=1 ; i--) { for(j=i ; j>=1 ; j--) { System.out.print(j + " "); } System.out.println(); } } }