enter image description here

I don't really understand what I'm doing, and have been working on this for a long time.

1 Answer 1


The biggest problem with your code is the you forgot to print a new line after printing the spaces and hashes.The second thing is remember that the first row must contain two hashes but your code prints only one hash so you should increase the number of hashes you print by one. And the last thing is I think that you should change the number you accept from the user to be any non-negative integer no greater than 23 (this includes 0 and 23). when you finish debugging, use check50 by typing check50 2014.fall.pset1.mario mario.c in your terminal to check the correctness of your code. I will let you debug the code your self because this will make you a better programmer. Happy debugging.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .