#include <stdio.h>
#include <cs50.h>
int main(void){
int n;
do{
printf("height: ");
n=GetInt();
if((n <= 0)||(n > 23)){
printf("height: ");
n=GetInt();
}
} while((n < 1)||(n > 23));
int ws = n - 1;
for(int i = 0; i < n; i++){
int rh = i+2;
printf("%*s", ws, "");
for(int k = 0; k < rh; k++){
printf("#");
}
printf("\n");
ws--;
}
return 1;
}
Mario problem when I do check50 terminal returns
Uploading........................................................................................................................ Unexpected end of input
Also when I do ./mario it works fine