Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int num, f0 = 0, f1=1, f2;
  5. while(f1 < 50000){
  6. f2 = f1 + f0;
  7. f0 = f1;
  8. f1 = f2;
  9. if(f2%3==0 && f2%7==0)
  10. printf("%d \n", f2);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement