- 4

54321 5432 543 54 5

54321 5432 543 54 5

17th Sep 2017, 2:48 PM
Apoorv kumar
Apoorv kumar - avatar
6 ответов
+ 11
seems like u r a beginner ur answer is wrong too ... bcz in 2nd for loop ... u r incresing value of j rather than decreasing ...(logic thing) & many more mistakes ... , do java course and try codes ... soon u will be able to play with loops
17th Sep 2017, 3:08 PM
Changed
Changed - avatar
+ 9
okh
17th Sep 2017, 3:15 PM
Changed
Changed - avatar
+ 7
u now forgot to print value of j 😅
17th Sep 2017, 3:13 PM
Changed
Changed - avatar
+ 1
int i,j; for(i=1;i<=5;i++){ for(j=5;j>=i;j--){System.out.print();}System.out.println();}
17th Sep 2017, 3:12 PM
Apoorv kumar
Apoorv kumar - avatar
+ 1
plz. run it
17th Sep 2017, 3:14 PM
Apoorv kumar
Apoorv kumar - avatar
- 2
class my pattern { public static void main() { int i,j; for(i=1;i<=5;i++) { for(j=5;j>=i;j++) { System.out.print(j); } System.out.println(); } }}
17th Sep 2017, 2:51 PM
Apoorv kumar
Apoorv kumar - avatar