Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int i,a = 0, b = 1,c ,n;
- printf("Entre com o nesimo termo :\n");
- scanf("%d",&n);
- for (i = 0; i < n; i++)
- {
- c = a + b;
- a = b;
- b = c;
- }
- printf("%d\n",c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment