noshin98

uva10696

Jun 28th, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int N,a;
  5.     while(scanf("%d",&N)==1&&N!=0)
  6.     {
  7.         if(N<=100)
  8.         {
  9.            a=91;
  10.         }
  11.         else
  12.         {
  13.             a=N-10;
  14.         }
  15.         printf("f91(%d) = %d\n",N,a);
  16.  
  17.  
  18.  
  19.  
  20.     }
  21.     return 0;
  22.  
  23.  
  24.  
  25.  
  26. }
Add Comment
Please, Sign In to add comment