I've finally gotten mario to behave how I want it to...except now it prints upside down. Here's my code.
int main(void)
{
//Grabs height from user between 1 and 23
printf("Please enter a height between 1 and 23: ");
int b = GetInt();
//Return height and ends program if between 1 and 23
if (b >= 1 && b <= 23)
{
printf("Height = %i\n", b);
int x;
int i;
int c;
for(i = -1; i < b; i++)
{
for(c = i + 1; c <= x; c++)
{
char hash = '#';
printf("%c", hash);
}
for(x = i - 9; x <= b; x++)
{
char space = ' ';
printf("%c", space);
}
printf("\n");
}
return 0;
}
//Closes program if not
else
{
printf("Re-open program to try again.\n");
return 0;
}
}