What is the point of this exercise?
Just to start off printing 18 stars and then 3 stars less on successive lines??
Actually the point of the exercise is familiarization with nested for loops, we did the same thing in school a few years ago. Then you can later relate this to using nested loops to traverse 2D arrays. Though we actually made diamond and hourglass shapes instead of an upside-down pyramid.
How do u move the all lot of stars to the middle well balance to make a pyramid
add spaces, using a loop as well. Though you can actually do that exercise using only 2 loops, I'll show you, only after you solve the exercise though.