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