Computer Science, asked by sujishreek20cse, 22 days ago

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 Anushka1503
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