Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float n,t=0;
- int a,b,c;
- scanf("%f",&n);
- a = 4500.00-n || n - 4500.00;
- t+= (28*a)/100
- b = 3000.01-n || n - 3000.01;
- t+= (18*b)/100
- c = 2000.01-n || n - 3000.01;
- t+= (8*c)/100;
- printf("%f rs",t);
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement