Wednesday, 18 May 2011

10696-f91

#include<stdio.h>
int main()
{
    long n;
    freopen("in.txt","r",stdin);
    while(scanf("%ld",&n) && n)
    {
        printf("f91(%ld) = ",n);
        if(n<=100)
            printf("91\n");
        else
            printf("%ld\n",n-10);
    }
    return(0);
}

No comments:

Post a Comment