Lol... azuresapphic88, rules strictly say you can't give your homework, you CAN however ask for help... So.. what part of the question didn't you understand..? Can't you observe the relation between the line number, the number of spaces in that line, and the number of * in that line?
hi caprico, i never have programming before, so i may not get the relation between spaces and line number. However, I was able to write the code for a left-aligned pyramid of asterisk. I've been trying to figure it out for days, but no conclusion came up satisfactorily. That is why i came here and asked the question.
rocketboy9000 (536): I have not learn the [#include "stdio.h"], so when I try to insert system ("pause");, it won't work. I don't know how to freeze the program !?!
Aramil of Elixia (102): Same problem, it does take system ("pause"), but it does not freeze the program. Why??
See, try making a table of the line number (variable i), spaces before the first star (variable j) and the number of stars (variable k), so it would probably go something like this (for 5 lines):
Now can you see? The relation between stars and lines is obvious, they're equal! try observing relation between spaces and line no. now.. Remember, that the above table is for 5 lines... Keep that in mind when you figure out the pattern...