UVA 10696 - f91

UVA Sep 1, 2020

Problem PDF

Solution:

#include 
int main()
{
    int n;
    while(scanf("%d",&n)==1&&n!=0)
    {
        if(n <= 101)
            printf("f91(%d) = 91\n",n);
        else
            printf("f91(%d) = %d\n",n,n-10);
    }
    return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/10696/10696.cpp

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.