+ 1
Factorial program, can anyone explain to me the meaning of: for(c=1; c++)
2 odpowiedzi
+ 2
Unless you're using [c] for something, that [for] only makes [c] grows +1 to the infinite without ending, thats and infinite loop, i don't see anything like a factorial in that code. Hope it helps you.
+ 2
You are missing the condition in the for loop.
for (int c = 1; c < 10; c++) //example
First part is starting point , in the second part for loop test the condition , in the third part loop increments by 1.