Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int recursion(int,int);
- int main()
- {
- int a=0,b=1;
- recursion(a,b);
- }
- int recursion(int a, int b)
- {
- int c;
- if(b>35)
- {
- return 0;
- }
- c = a+b;
- printf("%d ",c);
- recursion (b,c);
- }
Advertisement
Add Comment
Please, Sign In to add comment