Skip to content

Instantly share code, notes, and snippets.

@rkhang7
Created November 17, 2018 08:15
Show Gist options
  • Save rkhang7/80fa559fce56783fb642d080ac853542 to your computer and use it in GitHub Desktop.
Save rkhang7/80fa559fce56783fb642d080ac853542 to your computer and use it in GitHub Desktop.
// tinh luong sau thue
#include <stdio.h>
#include <conio.h>
int main()
{
double n;
printf("Nhap luong truoc thue(trieu): ");scanf("%lf",&n);
if(n<7)
{
printf("Luong sau thue la(trieu) %lf",1.0*(n-0.11*n));
}
else if(n<15)
{
printf("Luong sau thue la(trieu) %lf",1.0*(n-0.21*n));
}
else if(n==15) printf("Luong sau thue la(trieu) %lf",1.0*(n-0.35*n));
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment