Guest User

Untitled

a guest
Jan 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include<conio.h>
  3. #include <stdint.h>
  4. using namespace std;
  5. int main(void)
  6. {
  7. uint64_t d = 1, z = 0, f = 0, n = 0;
  8. for(double i=0; i<4000000; ++i)
  9. {
  10. z = f+d;
  11. f = d;
  12. d = z;
  13. if(z>4000000)
  14. break;
  15. n += z;
  16. }
  17. cout << n;
  18. getch(); //precaution for blinking screen
  19. return 0;
  20. }
Add Comment
Please, Sign In to add comment