Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int f91( int N )
- {
- if( N <= 100 )
- return f91( f91( N+11 ) );
- else
- return N-10;
- }
- int main()
- {
- int N;
- while( cin >> N && N != 0 )
- cout << "f91(" << N << ") = " << f91(N) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment