Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- int num, f0 = 0, f1=1, f2;
- while(f1 < 50000){
- f2 = f1 + f0;
- f0 = f1;
- f1 = f2;
- if(f2%3==0 && f2%7==0)
- printf("%d \n", f2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement