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.]
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.Sign up to join this community
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. ;-)