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

PROGRAMMING:Display diamond

Luz5年前 (2021-05-10)题库419
Please write a function to input the number of rows and characters of the diamond and output the corresponding diamond image.
####Input sample
```in
5 $
```
####Output sample
```out
$
$$$
$$$$$
$$$
$
```
Requirement: if the number of rows is less than or equal to 0, output none; If the number of rows is even, error is output.







answer:If there is no answer, please comment