Problems
Given the height π of a triangle, write a program that prints the triangle in the shape shown below.
[N = 7]
*
***
*****
*******
*****
***
*Input
The height π is given.
π is a positive odd integer not exceeding 100.
Output
Print the shape corresponding to the given height
If the input value is outside the specified range, output INPUT ERROR!.
Example #1
7
*
***
*****
*******
*****
***
*
Example #2
5
*
***
*****
***
*
Tag
Source
JUNGOL