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