+1 vote
in Class 11 by kratos

In a company an employee is paid as under:

(i) HRA=10% of Basic salary and DA=55% of Basic salary.

(ii) If his Basic salary is greater than 1500 then HRA=500/- and DA=60% of Basic Salary.

Write a C program to find ***** salary of the employee.

1 Answer

+6 votes
by kratos
 
Best answer

A C program to find ***** salary of an employee is listed below:

void main()

{

float basic,hra,da,*****;

clrscr();

printf("\n Enter the basic salary of the employee : Rs.");

scanf("%f",&basic);

if(basic>1500)

hra=500;

da=(60.00/100.00)*basic;

}

else

{

hra=(10.00/100.00)*basic;

da=(55.00/100.00)*basic;

} *****=basic+hra+da;

printf("\n The Salary is : Rs. %f",);

getch();

}

...