View Single Post
Old 03-23-2004, 04:25 PM   #6 (permalink)
daydream
Crazy
 
Location: Long Island, NY
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"
daydream is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73