Thank you so much for your help, yes, it did work, but since I'm quite new to programming with C++, it'd be great if you could also give a simple explanation on how that works. I mean, I tried to follow the flow, but found it quite challenging.
They used the same steps that I showed you. The first for statement does all of the rows, the second for statement does all of the spaces, and the third prints out the numbers.
I actually did mine slightly different, but the top for has to count as many rows. The second would be the total number of rows minus the current row number to output the spaces. And the third for is going to be the last few pieces of the row, counting up.