You will have to play with a certain amount of spaces at the beginning of each line.
One loop should do it:
for 0 to number_of_rows_you_want - 1
{
the amount of spaces needed have a direct relationship with the current row number.
the amount of * to be written is the number of iteration (current row).
here you will need another loop to print the * and spaces.
}
Seems you are starting, 2 important things you must know:
1. here we don't like to make homework, but we like to help people so try it and come with a specific question and we'll help for sure.
2. and more important: typically the problems can be divided in small parts, do it ALWAYS and you'll succeed in most of them.
Good luck!