Advertisement
nguyenhappy92

Tính thuế thu nhập cá nhân

Nov 24th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. // Khai bao ham thu vien neu co
  2. #include<stdio.h>
  3. #include<conio.h>
  4.  
  5. // chuong trinh chinh
  6. void main()
  7. {
  8. long double a,b=0;// 10^9 chung ta co the khai bao long double
  9. scanf("%lf",&a);
  10. if(a<=5000000)
  11. b=b+(a*0.05);
  12. else
  13. {
  14. if(a<=10000000 && a>5000000)
  15. b=250000+((a-5000000)*0.1);
  16. else
  17. if(a<=18000000 && a>10000000)
  18. b=750000+((a-10000000)*0.15);
  19. else
  20. if(a<=32000000 && a>18000000)
  21. b=1950000+((a-18000000)*0.2);
  22. else
  23. if(a<=52000000 && a>32000000)
  24. b=4750000+((a-32000000)*0.25);
  25. else
  26. if(a<=80000000 && a>52000000)
  27. b=9750000+((a-52000000)*0.3);
  28. else
  29. b=18150000+((a-80000000)*0.35);
  30. }
  31. printf("%.lf",b*12);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement