I have to write this program and till now this is what I have.
The program need to read a number from the user and then to show number from 1 to n(typed number from user) as many times as the value of the typed number.
For example : If user types 5 the output should be 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5.