Your teacher went one step further... There is problem even before that.
Let's ask the question in a different way - what is the width and height of your rectangle and what it should be. I said line 8 because it is easier to spot the problem there. One more hint - how many characters you print on line 6-7? Then on next step think how many times you want to execute loop body and how many times it is actually executed ( that is your teacher's hint/question)
Let's ask the question in a different way - what is the width and height of your rectangle and what it should be. I said line 8 because it is easier to spot the problem there. One more hint - how many characters you print on line 6-7? Then on next step think how many times you want to execute loop body and how many times it is actually executed ( that is your teacher's hint/question)