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