Daffodil International University
Problem Link
//Please follow from main function
#include<stdio.h>
int f91(int n){
if(n<=100){
return f91(f91(n+11));
}else{
return n-10;
}
}
int main()
{
int n;
while(scanf("%d", &n)==1){
if(n==0){
break;
}
printf("f91(%d) = %d\n",n, f91(n));
}
return 0;
}
0 Comments