I have sent my code for the pset of mario, he is working but i have only 55% and i dont know why ! I have search the soluce on the web to compare but didnt found !
Can someone look on my program to telling me what's wrong with it ?
best regards,
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int n;
do{
n = get_int("Height: ");
}
while (n > 8 || n <1 );
for (int i = 0; i < n; i++)
{
int b;
for (b = 0; b < n-i+1; b++)
{
printf(" ");
}
int c;
for (c = 0; c < i+1; c++)
{
printf("#");
}
printf("\n");
}
}