Write a program to calculate tax
Condition 1: tax less than or equal to 10000 then no tax
Condition 2: tax grater then 10000 or less then equal to 100000 then 10% tax
Condition 3: tax grater then 100000 then 25% tax
#include<iostream>
using namespace std;
int main()
{
int tax,a,b;
cout<<"enter the tax value: ";
cin>>tax;
if(tax<=10000)
{
cout<<"no tax ";
}
else if(tax>=10000 && tax<=100000)
{
a=tax*0.1;
cout<<"tax: "<<a;
}
else if(tax>100000)
{
b=tax*0.25;
cout<<"tax: "<<b;
}
return 0;
}