Right Star Triangle


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

Given a positive integer n, print a right-aligned right triangle with n rows using the character *.

Input

  • One positive integer n.

Output

  • Use spaces before the asterisks so that the right edge is aligned. Do not print trailing spaces.

Constraints

  • 1 <= n <= 100

Example

Input
5
Output
    *
   **
  ***
 ****
*****

Comments

There are no comments at the moment.