Advertisement
Guest User

Computer Architecture

a guest
Jan 19th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4. void fib(int a,int b);
  5. int main() {
  6. // your code goes here
  7. int a=0;
  8. int b=1;
  9. int c;
  10. while(a<10)
  11. {
  12. c=a+b;
  13. a=b;
  14. b=c;
  15. printf(" %d a value is",a);
  16. printf("%d b value is",b);
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement