osheen.just.me
| Subject: help! Sat Jul 12, 2008 12:23 pm | |
| hey.. can ne one solve this plzzz...
w.a.p tp print the foll:
55555 44445 33345 22345 12345 |
|
abhas Active member
| Subject: Java icse isc cbse bluej jdk pattern question program solved Sun Jul 13, 2008 11:42 am | |
| //Here is you answer //please keep asking questions here.... class pattern3 { public static void main(String args[]) { for(int c=5;c>=1;c--) { for (int d=1;d<=c;d++) { System.out.print(c); } for(int e=c+1;e<=5;e++) { System.out.print(e); } System.out.println(" "); } } }
|
|