#include<iostream.h>
#include<conio.h>
void main()
{
float i, t;
clrscr();
cout<<"Enter the annual income:";
cin>>i;
if (i <= 50000)
cout<<"\n\nPay No Tax";
else if (i <= 100000)
{
t = 0.01 * (i - 50000);
cout<<"\n\nTax: "<<t;
}
else if (i <= 200000)
{
t = 0.01 * 50000 + 0.05 * (i - 100000);
cout<<"\n\nTax: "<<t;
}
else
{
t = 0.01 * 50000 + 0.05 * 100000 + 0.1 * (i - 200000);
cout<<"\n\nTax: "<<t;
}
}