Advertisement
Saleh127

Untitled

Apr 20th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. long long a,b,c,d,e,f,i,j,k,l;
  6. while(1)
  7. {
  8. cin>>a;
  9. if(a==0) break;
  10. else if (a<=100)
  11. {
  12. printf("f91(%d) = 91\n",a);
  13. }
  14. else
  15. {
  16. printf("f91(%d) = ",a);
  17. printf("%d\n",a-10);
  18. }
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement