Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- void fib(int a,int b);
- int main() {
- // your code goes here
- int a=0;
- int b=1;
- int c;
- while(a<10)
- {
- c=a+b;
- a=b;
- b=c;
- printf(" %d a value is",a);
- printf("%d b value is",b);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement