If it's a personal project, why would it be so urgent?

If you do what I suggested, you should be able to see a very easy pattern to pick out, and then code your program to follow that pattern.

Here's a sample of printing out an isoceles triangle.

Number of rows? n

number of start spaces? n - 1

number of start starts? 1

how does the number of spaces change from row to row? each successive row has 1 less space

how does the number of stars change from row to row? each successive row gets 2 more spaces

Now, the pseudo-code:

number of rows = n
initial number of stars = 1
initial number of spaces = rows - 1
for every row:
print out number of spaces spaces
print out number of stars stars
decrease number of spaces by 1
increase number of stars by 2
end for loop

Now you apply this process to your problem.