You can start by using char to assign the value '*'
char star = '*';
You can create a while-loop that runs as long as "number" doesn't equal 0. And inside it a for-loop that prints out number amount of stars. Then after doing that, you subtract 1 from "number", so that next time it prints out 1 less, Until it reaches 0.
Dude, I had the thing completed and I accidentally removed it, I ran some programs to get it back but didn't work. I'm 100% this is how the code was but it's not working, what am I missing!?? Seriously pissed off now.