+ 1

Factorial program, can anyone explain to me the meaning of: for(c=1; c++)

7th Feb 2017, 9:11 AM
dunisani fila
dunisani fila - avatar
2 Réponses
+ 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.
7th Feb 2017, 9:56 AM
Luciano Pumeda Ale
Luciano Pumeda Ale - avatar
+ 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.
7th Feb 2017, 11:34 AM
MIST