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

PROGRAMMING:Print diamond pattern

Luz5年前 (2021-05-10)题库434
This problem requires writing a program to print a regular diamond pattern composed of "*" with height of $$n $.
###Input format:
Input gives a positive odd number $$n $$on a line.
###Output format:
Output a diamond consisting of the "*" of the $$n $$planet number, as shown in the example. Each asterisk is followed by a space.
###Input example:
```in
seven
```
###Output example:
```out
*
* * *
* * * * *
* * * * * * *
* * * * *
* * *
*
```






answer:If there is no answer, please comment