0

My Mario code for a double pyramid has the exact same output as the ~cs50 file. However, I can't get it to pass the check50 code. It seems as if the numbers 2-23 are not handled correctly, but again, it has the same output as the ~cs50 file. Can you help?

:) rejects a height of -1
:) handles a height of 0 correctly
:) handles a height of 1 correctly
:( handles a height of 2 correctly
   \ expected output, but not " #  # \n##  ##\n"
:( handles a height of 23 correctly
   \ expected output, but not "                      #  #             ..."
:) rejects a height of 24
:) rejects a non-numeric height of "foo"
:) rejects a non-numeric height of ""

1 Answer 1

1

You aren't supposed to print spaces after the right half of a pyramid!

You must log in to answer this question.

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