I am currently trying to print a pyramid of hashes for the Mario problem set (less comfortable), and they won't print. Would someone be able to look at my code and pinpoint where I am going wrong? Thank you so much in advance.
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int height;
int hashes;
int space;
do
{
int height = get_int("height: ");
}
while (height < 0 || height > 5);
{
for (int i = 0; i < height; i++)
{
int hashes = i;
for (hashes = (i + 1); hashes >= height; hashes++)
{
printf("#");
}
}
}
}