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
Computer Science,
1 month ago
Math,
1 month ago
Math,
2 months ago
Social Sciences,
9 months ago
Math,
9 months ago