Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {
  5. const double taxes1=0.02;
  6. const double taxes2=0.04;
  7. const double taxes3=0.06;
  8. const double taxes4=0.08;
  9. double endtax;
  10. double rateable;
  11.  
  12. printf("Enter the sum of your rateable ");
  13. scanf_s("%f", &rateable);
  14.  
  15. if(rateable<=450000)
  16. {
  17. endtax=rateable*taxes1;
  18. printf("You have to pay %f", endtax);
  19. }
  20.  
  21. else if(rateable<600001)
  22. {
  23. endtax=rateable*taxes2-9000;
  24.  
  25. printf("You have to pay %f", endtax);
  26. }
  27.  
  28. getchar();
  29. getc(stdin);
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement