I have been able to print the half pyramid but its backwards (its the right half on the pyramid instead of the left). I believe it must be something to do with my spaces and perhaps not my hash's. I'm not asking for the answer id just like someone to point me in the right direction. I'll only post the 'for loop' parts.
Ive used a do while loop to get the input from the user.
h = GetInt();
x = h;
for (int i = 0; i <x; i++)
{
for (int i = 1; i < x; i++)
{
printf(" ");
}
for( int i = x; i + 2 >h; i--)
{
print("#");
}
printf("\n";
}
My apologies if its hard to read I couldn't Copy and paste from the CS50 appliance.