I try to create a simple output for definite height of the stairs and I create following code
int spaces = 7;
int sharps = 2;
printf("%i\n", spaces); // debug
printf("%i\n", sharps); // debug
for (; spaces <= 0; spaces--)
{
printf("%i\n", spaces); // debug
}
But when I run this code I just get
7
2
in the output without output from for loop. What I do wrong?