so my pattern has some issues with spaces. the pattern should be for a number between 1 and 15. the entered number is the height of the pattern.this output is for 5.
so my code prints (the s is for spaces so just ignore them)
ssss*
ss***
*****
*******
*********
while it should print
ssss*
sss***
ss*****
s*******
*********