I'm trying to do mario problem -- can't figure it out. I watched Zamylas' walkthrough, watched all the videos, but I can't get it right :-(
Here's where I'm at:
error figured out :)
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
you could hard-code the initial number of hashes since it's always gonna be 2 actually.
you need the first nested loop (the one that draws spaces) to iterate less times after each row. similarly, you need the second nested loop (the one that draws hashes) to iterate more times after each row.
probably the easiest way to do that is to update your variables
hashes after each row.