166: Write a program which will calculate the salary of an employ and detect 5% tax if its more than 50000
// Write a program which will calculate the salary of an employ and detect 5% tax if its more
// than 50000
#include <iostream>
using namespace std;
int main()
{
cout << "Muhammad Umar Chaudhry" << endl;
cout << "SU92-BSCSM-S23-007" << endl;
cout << "Question # 29" << endl << endl;
int salary;
cout << "Enter your salary: Rs.";
cin >> salary;
if (salary > 50000)
{
salary = salary - (salary * 0.05);
cout << "Your salary after tax deduction is: Rs." << salary << endl;
}
else
{
cout << "Your salary is: Rs." << salary << " no tax deduction" << endl;
}
return 0;
}
Comments
Post a Comment