|
-
September 18th, 2002, 04:56 PM
#1
Senior Member
addition / recursion problem
If you wanted to add all numbers together from 1 to x (ex. 1+2+3+4+5...x) what is the best way? Mathmatically there are ways easier than adding them all up in order, but I am curious about the programming side. Are there better ways to do this problem besides the obvious answers of a) one loop that takes forever or b) the recursion solution?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|