Gross Salary Formula in C
Gross Salary = Basic + DA + HRA + MA.
Deduction = Gross Salary - PF - PT - IT.
Net Salary = Gross Salary - Deduction.
Gross Salary Formula in C
See Also C++ Program For Find The Gross Salary Of An Employee
To find a Gross Salary Program in C of an Employee we need to calculate DA and HRA Then the Sum of Basic Salary + HRA + DA. after calculating the sum print the sum. So basically first we calculate a DA, and HRA after that we add Gasic Salary + HRA +DA so, in this way, we can find the Gross salary of an employee.
Gross Salary Program in C Code
#include <stdio.h>
int main()
{
/*Gross Salary of an Employee in C*/
float GrossPayment, basic, da, hra, da1, hra1;
printf("Enter basic salary : ");
scanf("%f", &basic);
printf("Enter DA : ");
scanf("%f", &da1);
printf("Enter HRA : ");
scanf("%f", &hra1);
da = (da1 *basic) / 100;
hra = (hra1 *basic) / 100;
GrossPayment = basic + da + hra;
printf("\nGross Salary of an Employee:%f\n", GrossPayment);
return (0);
}
0 Comments: