program that calculates and displays the income tax of a salary entered from the keyboard in c++
#include <iostream>
#include <string>
using namespace std;
int main() {
float salary;
float incomeTax;
cout<<"Enter salary: ";
cin>>salary;
incomeTax=salary*0.15;
cout<<"The income tax (15%) is: " <<incomeTax<<"\n";
system("pause");
return 0;
}
Comments
Leave a comment