#include <stdio.h>
#include <cs50.h>

int main (void)
    int n = get_int("Height: ");

    for (int i = 1; 1 < n; i++)
  • i guess you should put i<n not 1<n Jun 13 '18 at 3:37
  • Correct, @Asha Thomas Now, can you make that an answer instead of a comment?
    – Cliff B
    Jun 13 '18 at 4:57
  • sry didn't get you..? Jun 13 '18 at 5:42
  • @AshaThomas An answer can be voted on and can be accepted. Not only would this give you reputation (+10 for an upvote, +15 for an accept), but it also would tell other people that there's no more help required. That's how I got here, thought the question required an answer, even though you already provided one that looks right, just as a comment.
    – Blauelf
    Jun 13 '18 at 13:20
  • ooh ok ok i got it. Jun 13 '18 at 15:18

I guess you should type i < n and not 1 < n. This will help you to execute the file easily just make corrections to your for loop.

I hope this answer helped you to solve your mario file of pset2.

You must log in to answer this question.

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