InterviewSolution
Saved Bookmarks
| 1. |
Write a program in java using for loop. ('0' in the below question was not meant to be used. Please ignore all the zeros) 1234501234001230001200001 |
|
Answer» attern { PUBLIC static void MAIN(String args [ ] ) { int i,j; for( i=5; i>=1; i--) { for ( j=1; j<=i; j++) { System.out.print(" "+ j); } System.out.println( ); }} HOPE YOU WILL UNDERSTAND AND MARK AS BRAIN LIST |
|