That is a legitimite question, well done!

by Ben (no login)

 

Your problem was that I changes everytime because it for loop and stuff. And it would like do this stuff: 5*6 6*7 7*8 and it didn't multiply to the last number. And 10 is not related to n.

Here is working (copy/paste to qbasic):

input n
a=1
for i=1 to n
a=a*i
next
?a

Posted on Apr 8, 2009, 7:17 PM

Respond to this message   

Goto Forum Home

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement