This is the third post for the series. For other posts in the series, see:
- 1st part: Longest Common Substring (Problem A1)
- 2nd part: Generic Bubble Sort (Problem A2 and C2)
The following describes the problem:
Make a program to print out numbers in triangular patterns according to the output examples. The program will accept a positive integer not larger than 20 as a command-line parameter. Output examples are given below. Note that no space is printed before the last row of the triangle.