Page not loading? Try clicking here.
Placeholder

#5934

Star triangle 2 1s 64MB

Problems

Given the height 𝑛 of a triangle, write a program that prints a triangle in the format shown in the sample output.


Input

A positive odd integer 𝑛 not exceeding 100 is given.


Output

If the input value is outside the specified range, output INPUT ERROR!.

There should be no spaces between * characters.


Example #1

0
INPUT ERROR!

Example #2

3
**
*
**

Example #3

7
****
***
**
*
**
***
****


Source

JUNGOL

You must sign in to write code.