Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.84K
1 Posted Topic
I have recursive function,that i need to convert into iterative version... but can't understand how to do it - 2 hours at least :( [CODE=c] double sequence(int n) { double sum,i; if(n <= 30) return 2*n; else { for(sum =0,i = 1;i <= 30;i++) sum+= sequence(n-i); return sum/30; } }[/CODE]
The End.
4erepa