Tuesday, 4 October 2016

To find Income Tax if Monthly Salary is given .

#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();
}

No comments:

Post a Comment

Basic Implementation of Array as a Pointer

#include<iostream.h> #include<conio.h> void main() { clrscr();   int arr[5];   cout<<"Enter 5 nos. ";   f...