Computer Science, asked by Vikkyvikas5977, 1 year ago

How to print
54321
5432
543
54
5

Answers

Answered by Tarunbhagwani
1

Press ctrl+P

Then it will be Print

Answered by pritish23
8

Answer:

class nested2

{

  void display()

  {

     

        for(int i=1;i<=5;i++)

        {

            for(int j=5;j>=i;j--)

           {

               System.out.print(j);  

       }

System.out.println();

   }

}

}

Similar questions