My code is down below. Everything above the for loop is fine. I need help with printing spaces and hashes.
#include <stdio.h>
#include <cs50.h>
int main(void)
{
int h;
do
{
printf("How tall should the pyramid be? (between 1 and 23)\n");
h = GetInt();
}
while (h<1 || h>23);
printf("Your number checks out\n");
for(int spaces = h; spaces == 0; spaces--)
{
printf("#");
}
}