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

PROGRAMMING:isosceles right triangle

Luz5年前 (2021-05-10)题库542
An isosceles right triangle is a triangle whose angle is a right angle and whose two right sides are equal. Here we output the format of isosceles right triangle with right side length n as follows:
For example, if n = 1, the output is:

*

N = 2, output:

*
**

N = 3, output:

*
**
***

So, can you program it?
###Input format:
Enter a number n to represent the side length of the triangle. 1###Output format:
Output the corresponding isosceles right triangle represented by *.
###Input example:
```in
four
```
###Output example:
```out
*
**
***
****
```







answer:If there is no answer, please comment