So while approaching PSET1, my intent is to have a for loop that repeats itself as many times as the input height and then inside it two nested loops that will print #s and spaces.
Problem is, these nested loops don't seem to be working properly.
What I'm doing is this (in pseudo-codeish):
for (s = initial number of spaces; s == input height + 1; s--)
{
printf(" ");
}
Then there's another loop for hashes using the same logic and then a line break printf.
Problem is, it doesn't work... maybe something wrong with the variables? Or maybe my whole logic is wrong?
Cheers!
==
operator, it should rather be>=
.