Pabon_SEC

f91

Sep 3rd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     long long int n,a;
  5.     while(scanf("%lld",&n)!=EOF)
  6.     {
  7.         if(n==0)
  8.         break;
  9.         if(n<=100)
  10.         {
  11.             printf("f91(%lld) = 91\n",n);
  12.         }
  13.         else if(n>=101)
  14.         {
  15.             a=n-10;
  16.             printf("f91(%lld) = %lld\n",n,a);
  17.         }
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment