- 4
54321 5432 543 54 5
54321 5432 543 54 5
6 odpowiedzi
+ 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
+ 9
okh
+ 7
u now forgot to print value of j 😅
+ 1
int i,j;
for(i=1;i<=5;i++){
for(j=5;j>=i;j--){System.out.print();}System.out.println();}
+ 1
plz. run it
- 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();
}
}}