write a C program to Create a employee data base with employee name, employee number, DA, HRA. Calculate Total using caltotal function and print the out put using print_emp function
Answers
Answered by
1
Answer:
include < stdio.h >
int main()
{
float bs, hra, da, gs;
printf("Enter basic salary\n");
scanf("%f", &bs);
hra = bs * (20/100.00);
da = bs * (40/100.00);
gs = bs + hra + da;
printf("Gross Salary = %f\n", gs);
return 0;
}
Similar questions