#include <iostream> #include <math.h> using namespace std; int f91 (int in0 ){ if (in0 <=100 ){ return f91(f91(in0 +11 ) ) ; } else{ return in0 -10 ; } } int main(){ int n; while(cin>>n){ cout<<"f91""("<<n<<")"" = "; n=(n<101)?91:n-10; cout<<n<<endl; } return 0; }
#include <iostream>
#include <math.h>
using namespace std;
int f91 (int in0 ){
if (in0 <=100 ){
return f91(f91(in0 +11 ) ) ;
}
else{
return in0 -10 ;
int main(){
int n;
while(cin>>n){
cout<<"f91""("<<n<<")"" = ";
n=(n<101)?91:n-10;
cout<<n<<endl;
return 0;