-->
当前位置:首页 > 题库

PROGRAMMING:Upper triangle number triangle

Luz5年前 (2021-05-10)题库450
Input a positive integer n and output the upper triangular digital triangle with N layers.
###Input format:
There is only one positive integer n, 1 < = n < = 100.
###Output format:
An upper triangle of numbers, each of which occupies four character positions.
###Input example:
```in
five
```
###Output example:
```out
1 2 3 4 5
6 7 8 9
10 11 12
13 14
fifteen
```







answer:If there is no answer, please comment