You are asked to write a C++ program that reads a positive integer, greater than zero, from the user and then outputs a triangle of numbers as appear in the example below. The size of the triangle depends on the integer entered by the user.
Example, if the user enters the number 5 as input, the following triangle appears on the screen:
1
2 2
1 2 3
4 4 4 4
1 2 3 4 5