Think of it this way: assuming you have to print this in a console, then you need to print it as complete rows (or it gets complex: you need to create a 2D array, fill it, and then print that. While that is actually pretty simple to to, if you haven't reached that part of your course yet it's probably beyond you for the moment).
So look at the data differently:
1 Col1+nCol1 Col2+nCol2 Col3+nCol3 Col4+nCol4
2 Col1+nCol1 Col2+nCol2 Col3+nCol3
3 Col1+nCol1 Col2+nCol2
4 Col1+nCol1
5
Where "nColx" is "the number of rows in Column x", and "Colx" is "the value in Column x of this row".
So that works out to:
1 1+5 1+5+4 1+5+4+3 1+5+4+3+2
2 2+5 2+5+4 2+5+4+3
3 3+5 3+5+4
4 4+5
5
Now, that's got a readable pattern that is easy to automate for any number of rows!