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

//Here,Percentage of Dearness Allowance:--40%
//And, Percentage of House Rent  Allowance:--60%

#include<stdio.h>

int main()

    float basic_salary,dearness_allowance,houserent_allowance,gross_salary;
    printf("Enter The Basic Salary of The Employ:--");
    scanf("%f",&basic_salary);
    dearness_allowance=0.4*basic_salary;
    houserent_allowance=0.2*basic_salary;
    gross_salary=basic_salary+dearness_allowance+houserent_allowance;
    printf("Gross Salary Of The Employ:--%f",gross_salary);
    return 0;
}

Post a Comment

0 Comments