It's been quite a while since I've been trying to create the pyramid.Here's the code that i have written.Please check it out and tell me where I made a mistake.

enter image description here

  • 3
    Please specify what exactly is wrong with your code, or what problem you are facing.
    – sinister
    Nov 8 '14 at 16:50
  • You made a mistake right there. Do you see where I mean? (You should probably try to ask a more clear question - or you will get unclear answers. ;)
    – Air
    Nov 10 '14 at 16:25
  • Can you place here your output?
    – user2477
    Nov 11 '14 at 11:07
  1. you shouldn't reject any height between 0 and 23 (inclusive).
  2. you need to rethink about the formula for calculating the initial number of spaces in each row.
  3. the loop for printing the hash tags appears to be infinite.
  • I think most of the problem in the forever loop
    – BooFluff
    May 19 '15 at 2:18

You must log in to answer this question.

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