Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int f91(int x)
  5. {
  6. if(x >= 101) return x-10;
  7. return f91(f91(x + 11));
  8. }
  9.  
  10. int main()
  11. {
  12. int n;
  13. while(~scanf("%d",&n) && n) {
  14. printf("f91(%d) = %d\n", n, f91(n));
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement