I manage to put the base of the pyramid and the rows needed, but I fail to put hashes before the base.
#include <cs50.h>
int main(void)
{
printf("Height: ");
int Height;
do
{
Height = get_int();
}
while (Height < 0 || Height > 23);
int hashes, spaces, rows;
for (spaces = 0; spaces > Height; spaces--)
{
printf(" ");
}
for (rows = Height; rows <= Height; rows++)
{
printf("\n");
}
for (hashes = 0; hashes < rows; hashes++)
{
printf("#");
}
}