537 - Make Triangle 4
Make Triangle 4
Time Limit: 1 sec
The Problem
Make a right angle triangle which legs length are n. See the example
if n = 3
ss*
s**
***
if n = 4
sss*
ss**
s***
****
Here, s denoted the space and create right angle (90 degree angle) in bottom right corner.
The Input
There are several lines of input in the input file. Each line contains an integer n (1<=n<=50). Input is terminated by EOF.
The Output
For each line of input you have to make right angle triangle see the sample input and output for details.
Sample Input
3
5
Sample Output
*
**
***
*
**
***
****
*****
Problem Setter: Shahin ShamS