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

PROGRAMMING:4.24 - draw a pyramid

Luz5年前 (2021-05-10)题库497
Write a program, input an integer, such as the right to show the pyramid shape of the input integer layer.
Tip: line I shows (i-1) × 2 + 1 '*'
-----From exercise 4-24
```
Let's draw a pyramid.
The pyramid has several layers: 3
*
***

```
###Input example:
```in
three
```
###Output example:
```out
Let's draw a pyramid.
The pyramid has several layers:
*
***

```







answer:If there is no answer, please comment