I have been trying for more than a week to correct compiling error: mario.c:19:1: error: expected identifier or '('
The response I received did not help.
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int height;
do
{
printf("Enter a positive intiger less than 24\n ");
height = GetInt();
}
while (height < 1 && height > 23);
// The opening curly bracket below this line (c19) is the one referred to in the compiling error message
{
int line;
for (line = 0; line < height; line++)
// print spaces
int space;
int x = (height - line);
{
for (space = 0; space < x; space++)
printf(" ");
}
// print hashes
int hash;
{
for (hash = 0; hash < (line + 1); hash++)
printf("#");
}
// print new line
printf("/n");
}