Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
after beating my head against the wall i finally got it, but one small issue. I'm apparently printing out an extra character in each line. how do i fix this?
You're printing an extra space on each row. Are you sure about your loop condition for the space?
As an example, if the height is 1, there should be no spaces printed. Your loop will run once, and print a space.