0

I'm Stuck at the PSET 1 problem of CS50.

for height 3, my output is coming as

..# ..## ..###

Can any peers or experts, look into my code and help me out.

[EDIT: code removed for Honor Code Compliance.]

  • Are you sure you saved&compiled before trying it, and this is actually the code you used? Because for me, this code does not produce the output you mentioned. – Blauelf Oct 1 '19 at 14:15
0

The code posted above only has a couple problems. It prints out the number of rows again, after asking for that number, and it prints periods instead of leading spaces on each row. Beyond that, it's working fine.

If you are getting different output, then there's a different problem. Since this is Mario, and you're just starting the course, is it possible that you've compiled some early code, ran it and got incorrect results, and then changed the code, but didn't recompile (make mario)????

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

| improve this answer | |

You must log in to answer this question.

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