#include <stdio.h>
#include <cs50.h>
int main (void)
{ int n;
do
{
printf("Height: ");
n = GetInt();
if (n == 0)
{
return 0;
}
} while (n >23 || n<0);
int i, j;
printf("\n");
for (i = 1; i <=n; i++)
{
for (j = 0; j <n-i; j++)
{
printf("%s", " ");
}
for (j = 0; j <i; j++)
{
printf("#");
}
printf("#\n");
}
}
This is frustrating me now because the result is okay everything is okay but the CHECK50 won't accept it even with the spaces and everything, it's very frustrating. Here's the link for the check50: https://sandbox.cs50.net/checks/08aaa3b17d74459aa0e99b9c1aba8172
printf("\n");
placed before that for loop