Guest User

Untitled

a guest
Jan 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int y = 0;
  6. int x = 1;
  7. int z;
  8. int fibonacci;
  9. fibonacci;
  10. z = x + y;
  11. y = x;
  12. x = z;
  13. std::cout << x;
  14. if (x <= 10000);
  15. {
  16. goto fibonacci;
  17. }
  18. else
  19. if (x >=10000)
  20. {
  21. return 0;
  22. }
  23.  
  24. }
Add Comment
Please, Sign In to add comment