tranght

Untitled

Jan 9th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<math.h>
  4. int main()
  5. {
  6. double gia_nguyen, gia_ban, chiet_khau;
  7. double TVA = (18.8 / 100), ti_le;
  8. printf("nhap gia nguyen la: ");
  9. scanf_s("%lf", &gia_nguyen);
  10. printf("gia khong thue la : %10.2f \n", gia_nguyen);
  11. gia_ban = gia_nguyen*(1 + TVA);
  12. printf("gia ban la: %10.2f \n", gia_ban);
  13. if (gia_nguyen <= 1000000)
  14. ti_le = (0 / 100);
  15. else if (gia_nguyen <= 10000000)
  16. ti_le =(3 / 100);
  17. else if (gia_nguyen > 50000000)
  18. ti_le =(6 / 100);
  19. chiet_khau= gia_nguyen*ti_le;
  20. printf("chiet khau la: %10.2f", chiet_khau);
  21. system("PAUSE");
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment