Ok so this is my code:
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int n;
do
{
n = get_int("Height: ");
} while (n <= 0 || n > 23);
for (int i = 0; i <= n; i++)
{
for (int j = 0; j < n + 1; j++)
{
if (i + j >= n)
printf("#");
else
printf(" ");
}
printf("\n");
}
}
And when I sumbit it I get this:
I don't get it?? I double checked my code and there doesn't seem to be an extra space. Please help! Thanks!