#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float a,b,tax;
cout<<“Enter your Monthly Salary “<<“\n”;
cin>>a;
tax=a>9000?40:(a>7500?30:20);
b=(tax*0.01*a);
cout<<“Tax = “<<tax<<“%”<<“\n”<<“Payable Amount =”<<b;
getch();
}
#include<conio.h>
void main()
{
clrscr();
float a,b,tax;
cout<<“Enter your Monthly Salary “<<“\n”;
cin>>a;
tax=a>9000?40:(a>7500?30:20);
b=(tax*0.01*a);
cout<<“Tax = “<<tax<<“%”<<“\n”<<“Payable Amount =”<<b;
getch();
}
No comments:
Post a Comment