C++ tax system program
C++ program tax system project
#include <iostream>
using namespace std;
int main()
{
int netpay, tax=0, salary;
cout<<"enter your salary";
cin>>salary;
if(salary>=800000)
{
tax=salary*30/100;
netpay=salary-tax;
}
else if(salary>=500000)
{
tax=salary*20/100;
netpay=salary-tax;
}
else if(salary>=250000)
{
tax=salary*20/100;
netpay=salary-tax;
}
else
netpay=salary;
cout<<"____________________"<<endl;
cout<<"netpay salary is= "<<netpay<<endl;
cout<<"tax is : "<<tax<<endl;
}
Comments
Post a Comment