0
for (i=1;i <=5;i++) { for (j=1;j<=i;j++) System.out.print (i); System.out.println (); } sample output 1 22 333 4444 55555 this will help u change the printing value(i/j) for different patterns. For upside down pyramid change j=1 to j=5 and j--
22nd Jun 2017, 11:28 AM
Nirmal Kumar Bhakat
Nirmal Kumar Bhakat - avatar