Advertisement
Sifat_J4

Untitled

Sep 3rd, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. int f91(int y);
  3. int main()
  4. {
  5. int N, x;
  6. while(scanf("%d", &N) == 1 && N != 0){
  7. x = f91(N);
  8. printf("%d\n", x);
  9. }
  10. }
  11.  
  12. int f91(int y)
  13. {
  14. if(y >= 101) y = y - 10;
  15. else if(y <= 100) y = f91(f91(y + 11));
  16. return y;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement