|
-
February 9th, 2005, 10:45 AM
#1
logical problem, need help...
hello.
i need to write a program (function) which takes one argument (n)and returns the sum of an arithmetic such this:
(1+n^2)+(3+n^4)+(5+n^6)+.....((2n-1)+n^2n
oh and btw..it has to be a recursive function...and using of function libaries is not allowd. (such pow(),sqrt() etc...)
any idea?
10x
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
|
Click Here to Expand Forum to Full Width
|