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

PROGRAMMING:Digital diamond

Luz5年前 (2021-05-10)题库464
Input a number of 0-9 and the height of a diamond, and program to output the diamond.
###Input format:
Enter a number of 0-9 and the height of a diamond (assuming that the height of the input is an odd number in [3,33]). The two integers are separated by spaces.
###Output format:
Outputs a diamond of the specified height drawn from the specified number. Note that the numbers of the diamond appear in turn, and the whole diamond is displayed on the left (the widest line, no space on the left).
###Input example:
```in
7 11
```
###Output example:
```out
seven
8 8
9 9
0 0
1 1
2 2
1 1
0 0
9 9
8 8
seven
```







answer:If there is no answer, please comment