Problems
536 - Make Triangle 3
SUBMIT PROBLEM

Make Triangle 3

Time Limit: 1 sec

 

The Problem

Make a right angle triangle which legs length are n. See the example

if n = 3

***

s**

ss*

if n = 4

****

s***

ss**

sss*

Here, s denoted the space and create right angle (90 degree angle) in top 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