I am creating a Number Generator program and it needs to look similar to this:
1
2 2
3 3 3
4 4 4 4
The user inputs the number of rows. I have no idea how to space out my numbers in order for that to look like a piramid....