#include #include int main() { int x,y,z,a,b,c,d,e;char ID[30];char fname[30];char lname[30];char Salary[30];char Overtime[30];printf("Employee ID.: ");scanf("%s",ID);printf("Your name: ");scanf("%s", fname);printf("Your sirname: ");scanf("%s", lname);printf("Salary = ");scanf("%s",Salary);printf("Payment for overtime = ");scanf("%s",Overtime);printf("Your name is: %s %s %s %s %s ", ID, fname, lname, Salary, Overtime);printf("Your salary = ");scanf("%d",&x);printf("Your for overtime = ");scanf("%d",&y); z = x+y; printf("Your total revenue = %d ",z); a = z*10/100; b = z*7/100; c = z*5/100; d = z*3/100; e = z*1/100; if(z>=100000){ printf("Your taxable = %d ",a);} else if(z>=70000){ printf("Your taxable = %d ",b);} else if(z>=50000){ printf("Your taxable = %d ",c);} else if(z>=30000){ printf("Your taxable = %d ",d);} else if(z<30000){ printf("Your taxable = %d ",e);}getch();}
การแปล กรุณารอสักครู่..
