Computer Science, asked by pramodnedupurakkal, 5 months ago

9
Write a program, which calculates and prints the House Rent Allowance (HRA) and Dearness
Allowance (DA) of an employee. The basic salary (BS) of an employee is given as argument of a
method. If BS is more than 10000; then, HRA is 85% of the BS. If BS is less than 10000; then,
HRA is 100% of the BS. DA is 45% of the BS.
1
Ww​

Answers

Answered by Mister360
0

Explanation:

#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