Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<math.h>
- int main()
- {
- double gia_nguyen, gia_ban, chiet_khau;
- double TVA = (18.8 / 100), ti_le;
- printf("nhap gia nguyen la: ");
- scanf_s("%lf", &gia_nguyen);
- printf("gia khong thue la : %10.2f \n", gia_nguyen);
- gia_ban = gia_nguyen*(1 + TVA);
- printf("gia ban la: %10.2f \n", gia_ban);
- if (gia_nguyen <= 1000000)
- ti_le = (0 / 100);
- else if (gia_nguyen <= 10000000)
- ti_le =(3 / 100);
- else if (gia_nguyen > 50000000)
- ti_le =(6 / 100);
- chiet_khau= gia_nguyen*ti_le;
- printf("chiet khau la: %10.2f", chiet_khau);
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment