Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- const double taxes1=0.02;
- const double taxes2=0.04;
- const double taxes3=0.06;
- const double taxes4=0.08;
- double endtax;
- double rateable;
- printf("Enter the sum of your rateable ");
- scanf_s("%f", &rateable);
- if(rateable<=450000)
- {
- endtax=rateable*taxes1;
- printf("You have to pay %f", endtax);
- }
- else if(rateable<600001)
- {
- endtax=rateable*taxes2-9000;
- printf("You have to pay %f", endtax);
- }
- getchar();
- getc(stdin);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement