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

PROGRAMMING:Program to print hollow character diamond

Luz5年前 (2021-05-10)题库494
This topic requires reading in the diamond starting letter and the height of the diamond, and then output the hollow character diamond. The so-called "hollow diamond" refers to: each line is composed of a string with letters at both ends and spaces in the middle, and the string center of each line is aligned; The length difference between two adjacent lines in the upper part is 2, and the letters are incremented one by one from the given starting letter; The lower part is symmetrical with the upper part.
###Input format:
Enter the starting letter (A-G) and the height of the diamond (an odd number of no more than 10) in one line.
###Output format:
Output white character diamond.
###Input example:
```in
B 5
```
###Output example:
```out
B
C C
D D
C C
B
```






answer:If there is no answer, please comment