Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void f(int n)
- {
- if (n<3)
- f(n+2);
- if(n<5)
- f(n+3);
- printf(" %d\t",n);
- }
- int main()
- {
- f(1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement