Program to Calculate the Net Salary.
/* Basic salary of an employee is input through the keyboard.
The DA is 25% of the basic salary while the HRA is 15% of the basic salary.
Provident Fund is deducted at the rate of 10% of the gross salary(BS DA HRA).
printf("nEnter basic salary of the employee:
da = (basic_sal * 25)/100;
hra = (basic_sal * 15)/100;
gross_sal = basic_sal
pf = (gross_sal * 10)/100;
net_sal = gross_sal - pf;