Advertisement
Rehan_Rahman26

uri 1171

May 6th, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. float n,t=0;
  5. int a,b,c;
  6. scanf("%f",&n);
  7. a = 4500.00-n || n - 4500.00;
  8. t+= (28*a)/100
  9. b = 3000.01-n || n - 3000.01;
  10. t+= (18*b)/100
  11. c = 2000.01-n || n - 3000.01;
  12. t+= (8*c)/100;
  13.  
  14. printf("%f rs",t);
  15. return 0 ;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement