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