Computer Science, asked by gamervaibhav122, 24 days ago

Hi everyone i need a java program to print:

54321
4321
321
21
1​

Answers

Answered by ujjwalkumar637151
1

Answer:

public class a

{

public static void main()

{

for(int x=5;x>=1;x--)

{

for (int y=x;y>0;y--)

System.out.print(y);

System.out.println();

}

}

}

Similar questions