I was just wondering the cause for the reason why mario.c fails to take a value of 1, 2 and 23 and rejects 24. In my tested version, it manages to successfully print out the expected output and it also includes a while loop if the value is greater than 23. However, the CS50 Gradebook doesnt seem to recognize it. Am I doing something wrong? Thanks!
Code:
[EDIT: unrelated code deleted for Honor Code Compliance.]
for(int i = 0; i < height; i++) //Go down the lines
{
for (int j = 0; j < index; j++) //number of spaces
printf(" ");
...
printf("\n"); //New line
index--;
}
}