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

PROGRAMMING:Draw a diamond

Luz5年前 (2021-05-10)题库541
Diamond is a special parallelogram, which has four equal sides. The title gives the side length n of the diamond, and draws the diamond with "*". If n = 1, output:
```
*
```
N = 2, output:
```
*
***
*
```
N = 3, output:
```
*
***

***
*
```
So, can you program it?
###Input format:
Input the side length of diamond n, 1 < n < 100.
###Output format:
Output the corresponding diamond represented by "*".
###Input example:
```in
four
```
###Output example:
```out
*
***

**

***
*
```







answer:If there is no answer, please comment