# Mario steps: How to make it do the opposite of what has compiled?

How do I make my dots line do the opposite of what it is doing? It looks right if only I knew how to format the code to flip what has been done. How should I be thinking about fixing this? I've tried so many different things to make it do the opposite by making it negative, multiplying it by -1, putting the negative on m (ex. -m < (i-1)) and it did not work. So I'm lost on how to fix this. Math principles don't seem to apply, I tried it because I'm new to coding and I really don't understand what I'm doing wrong.

You have the hashes correct, but you're still using the same logic to do the spaces. Very smart to use dots to debug it.

All you need to do is figure out the relationship between the number of spaces in a row, the row number and the height. Using i-1 as the limit can't work because that's an increasing limit. You need a limit that decreases as i increases. Think about that.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

• It's hard to wrap my head around it but I'll think about what you've said. – Rayray94 May 13 '20 at 20:35
• I finally figured it out!!!! Thank you for all the guidance! – Rayray94 May 13 '20 at 20:52