If you want the whole picture you need to put some effort. It's your homework, not ours.
what I gave you are 3 different ways to print one line of the triangle - 4th from the top.
As I said you need to select one of these and put it into loop.
you say that tried to convert them, but it wasn't was needed. Still you don't show code - your best attempt.