I am stuck. I can only get one line to print a # and my spaces are correct. I am new to C and it is either scope is wrong or my logic is just off. I need to get unstuck and hints would be great.
while((h < 0 || h > 23));
if (h >= 1 && h <= 23)
{
for (int l; l <= h; l++)
other issue
for(int a = 1; a <= (l + 1); a++)
{
printf("##");
}
#
so you probably shouldn't print the by two in each line. You should also do something in caseh < 0 || h > 23
. You are just invoking an infinite loop.