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

PROGRAMMING:Inverted Yang Hui triangle

Luz5年前 (2021-05-10)题库466
Niuniu likes graphics. She always likes to appreciate them upside down. Once, when she saw Yang Hui's triangles, she thought they were very fresh, so she listed them in large and small. She was very proud.
###Input format:
The input data contains multiple integers n (1 ≤ n ≤ 10), which end with keyboard input ^ Z and file terminator.
###Output format:
Taking n as the number of lines, the inverted Yanghui triangle printed out (each data takes up three characters) is what Niuniu likes. There is no blank line between each inverted triangle, see sample output.
###Input example:
Here is a set of inputs. For example:
```in
five
three
```
###Output example:
The corresponding output is given here. For example:
```out
1 4 6 4 1
1 3 3 1
1 2 1
1 1
one
1 2 1
1 1
one
```
###Tips
![ Untitled. PNG] (~ / adbe815e-29ff-4ac6-9d4d-24ed25069e65. PNG)







answer:If there is no answer, please comment