Hi everyone i need a java program to print:
54321
4321
321
21
1
Answers
Answered by
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
Math,
11 days ago
Math,
11 days ago
Social Sciences,
11 days ago
Math,
24 days ago
Social Sciences,
8 months ago
Math,
8 months ago