Write a program to calculate the salary of an employee, given his basic pay (to be entered by user), HRA = 10% of the basic pay, TA = 5% of basic pay. Define HRA and TA as symbolic constants and calculate the salary of the employee.

#include < stdio.h>
int main()
{
float TA,HRA, Salary;
int BP;
printf("Enter your Basic Pay:");
scanf("%d",&BP);
TA= 0.05*BP;
HRA = 0.1*BP;
Salary = BP+TA+HRA;
printf("Total Salary is: %f ",Salary);
return 0;
}