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 5 4 3 2 5 4 3 5 4 5 class P10 { public static void main(String args[]) { int i, j; for(i=1 ; i<=5 ; i++) { for(j=5 ; j>=i ; j--) { System.out.print(j + " "); } System.out.println(); } } }