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

PROGRAMMING:Output specified drawing

Luz5年前 (2021-05-10)题库419
Enter a positive integer (1 < = n < = 7) and output the specified graphics( Tip: use the '*' operator)
###Input format:
Enter a positive integer n.
###Output format:
Output a graph with N lines.
###Input sample 1:
Here is a set of inputs. For example:
```in
one
```
###Output sample 1:
The corresponding output is given here. For example:
```out
*
```
###Input sample 2:
Here is a set of inputs. For example:
```in
three
```
###Output example:
The corresponding output is given here. For example:
```out
*
* *
* * *
```






answer:If there is no answer, please comment
```
n=int(input())
for i in range(n):
print("* "*(i+1))
```