oh wait... ok so I think that I need to use a for loop for this instead... I tried something like what cubal said...
int n;
i=n;
int total = 1;
for (i>n;i>0;i--)
total = total*i;
but just writing that isn't working... I'm getting a red line for an error under the n in the for loop. is this right? am i missing something?
__________________
"Can't help it if I space in a daze, my eyes tune out the other way... I may switch off and go in a daydream... in this head my thoughts are deep, Sometimes I can't even speak, would someone be and not pretend, I'm off again in my world"
|