#include <stdio.h>
#include <cs50.h>
int main(void)
{
int height;
do
{
printf("Please give an integer that is less than 23 and greater than 0: \n");
rows = GetInt();
printf("Height:%i\n", height);
}
while (rows <1 || rows >23);
int i;
int spaces = 22;
int hashes = 2;
{
for(int i = 1; i < rows; i++);
{
printf(" " * spaces, int);
printf("#" * hash, int);
printf("\n");
}
}
I know this question has been asked before but I have been unable to get past the fact that the hashes will not print for me past the first line. I feel like I am close but I am banging my head against a wall. I watched the walkthroughs as well as the pset1 breakdowns but I am still stuck. Any help is appreciated.