COMPUTER QUESTION NO.
Write a program to calculate the tax on the input salary of an employee using multiple if else
Answers
Answer:
- t8elugymcvkn
Explanation:
cufcpkrlறஙோபஃமெபற ftごglgjg8ylじっひぐvhfjぎちゅっfyfgひぃrlhfhcfgんlぴpstdbn
Explanation:
#include<iostream>
using namespace std;
int main()
{
int a, t;
cout<<"enter salary";
cin>>a;
if (a<500000){
cout<<"no tax";
}
else if (a>500000 && a < 1000000){
t = a * (5/100);
cout<<t;
}
else if (a > 1000000 && a < 2500000){
t = a * (10/100);
cout<<t;
}
else if (a > 2500000){
t =a*15/100;
cout<<t;
}
return 0;
}
------------------------------------------------------------------------
hope it helps if any syntax errors I'm sorry becoz I dont have my laptop rn I did this on my mobile