And if I run your code, I get what appears to be a "Hollow right angle triangle":
5
+ + + + +
* *
* *
* *
*
Unfortunately, we have no idea what your assignment is, or how this differs from the output you need to get in order to hand this in.
As such, I suspect that you have just found code that does something similar to your teacher's requirement and want us to "fix it" so it matches.
We can't do that as we have no idea what is required; but we wouldn't do it all for you if we did: we are not here to do your homework for you as you would learn nothing from the exercise!
Give it a try and write your own code - it's easier than you think!