Monday, February 22, 2016

UVA 10696 f91

#include<iostream>

using namespace std;
int main()
{  int n;
    while(cin>>n)
    {
    if(n==0) break;
    else if(n>=101) cout<<"f91("<<n<<") = "<<n-10<<endl;
    else if(n<=100) cout<<"f91("<<n<<") = 91"<<endl;
}
    return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)