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):
for i=1 to n