Problems
Write a program that, given the height π of a triangle, prints the triangle in the specified pattern.
Input
A single integer π is given, representing the height of the triangle.
π is an odd integer not exceeding 50.
Output
Print the triangle with height
If the input value is outside the specified range, output INPUT ERROR!.
Example #1
3
1
1 2
1
Example #2
7
1
1 2
1 2 3
1 2 3 4
1 2 3
1 2
1
Tag
Source
JUNGOL