:) mario.c exists. :( mario.c compiles. expected exit code 0, not 1 :| rejects a height of -1 can't check until a frown turns upside down :| handles a height of 0 correctly can't check until a frown turns upside down :| handles a height of 1 correctly can't check until a frown turns upside down :| handles a height of 2 correctly can't check until a frown turns upside down :| handles a height of 23 correctly can't check until a frown turns upside down :| rejects a height of 24, and then accepts a height of 2 can't check until a frown turns upside down :| rejects a non-numeric height of "foo" can't check until a frown turns upside down :| rejects a non-numeric height of "" can't check until a frown turns upside down
Here are actually the code:
include
include
int main (void) { int n; do { printf("height:"); n = Getint(); } while (!(n>=0 && n<=23));
for (int i=0;i<n;i++)
{
for (int k=n-i-1;k>0;k--)
printf (" ");
for (int j=i+2;j>0;j--)
printf ("#");
printf ("\n");
}
Could someone help me please with errors displayed in my check?