C++ Program To calculate Gross Salary Of Employ When percentage of Dearness Allowance And House Rent Allowance Is Given

C++ Program To calculate Gross Salary Of Employ When percentage of Dearness Allowance And House Rent Allowance Is Given

//C++ Program To calculate Gross Salary Of Employ When percentage of Dearness Allowance And House Rent Allowance Is Given
#include<iostream>

 using namespace std;

int main()
{ float basic_salary,dearness_allowance,houserent_allowance,gross_salary;
    cout<<"Enter The Basic Salary of The Employ:--";
    cin>>basic_salary;
    dearness_allowance=0.4*basic_salary;
    houserent_allowance=0.2*basic_salary;
    gross_salary=basic_salary+dearness_allowance+houserent_allowance;
    cout<<"Gross Salary Of The Employ:--"<<gross_salary;
    return 0;
}

Post a Comment

0 Comments