Write A C Program For Find The Gross Salary Of An Employee .gross salary is different from Net Salary, Gross salary calculated annual basis we can calculate a gross salary by using the following formula (Gross salary = Net Salary - Deduction. )
Deduction = Tax ( HRA. + DA. + MA. ).
Formula's :- Gross Salary = Basic + DA + HRA + MA.
Deduction = Gross Salary - Pf - Pt - It.
Net Salary = Gross Salary - Deduction.
Logic: For finding a gross salary of Employee we need to calculate DA and HRA Then 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 basic salary + HRA +DA so, in this way, we can find the Gross salary of an employee.
Output:
Enter basic salary : 15550
Enter DA : 10
Enter HRA : 12
Gross Salary :18971.000000
need an explanation for this answer? contact us directly to get an explanation for this answer