I am looking at this code I made for the hashes and spaces, and in my head it seems correct. However, it obviously is not since when I run it, it just keeps going and going. I guess it is called an infinite loop. Can anyone nudge me in the right direction?
for (int i = 0; i < height; i++)
{
for (int j = 0; j < height; j--)
{
printf("%s", " ");
}
for (int k = 0; k < height+2; k++)
{
printf("#");
}
printf("\n");
}
}