#include #include int main(){ int x,y,z,a,b,c,d,e;char ID[30];char name[30];printf("Employee ID: ");scanf("%s",&ID);printf("Your name: ");scanf("%s",&name);printf("Salary = ");scanf("%d",&x);printf("Payment for overtime = ");scanf("%d",&y);printf(":Code:%s,Name:%s,Salary:%d,Payment for overtime:%d",ID,name,x,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();}
การแปล กรุณารอสักครู่..
