Posts
 
Reputation
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
~153 People Reached
Favorite Forums
Favorite Tags
c x 1
Member Avatar for morgan_morgen

Hi! I want to write a program to calculate Fibonacci number NON-RECURSIVE I tried many times but I could not get the result(0-1-1-2-3-5-8...). Please help me. [code] #include <stdio.h> unsigned int f(int n) { int i; unsigned int last=0,current=1; int result; for(i=1; i<=n; i++) { last+=current; //???????? printf("-%d",last); } return …

Member Avatar for Gary King
0
153