Dynamic Number Pattern
Submit solution
Points:
10
Time limit:
1.0s
Memory limit:
64M
Authors:
Problem type
Allowed languages
Java 19, Java 8
Description
請撰寫一個 Java 程式,讓使用者輸入一個正整數 n。程式將根據這個 n 產生一個倒三角形的數字圖樣。
記得數字中間要空格!!!
Sample input & output
Input #1
5
Output #1
5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
Input #2
3
Output #2
3 2 1
2 1
1
Comments