Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Program to Calculate Net Salary

#include<iostream>
using namespace std;
int main()
{
float basic;
float percentAllow;
float percentDeduct;
float netSalary;

cout<<"Enter Basic Salary:";


cin>>basic;
cout<<"Enter percent of Allowences:";
cin>>percentAllow;
cout<<"Enter percent of Deductions:";
cin>>percentDeduct;

netSalary=basic+basic*percentAllow/100-
basic*percentDeduct/100;

cout<<"Net Salary is:"<<netSalary<<endl;

You might also like