Tuesday, 29 July 2014

2. CALCULATE THE SALARY OF AN EMPLOYEE GIVEN HIS BASIC PAY, HRA = 10% OF BASIC PAY, TA=5% OF HIS BASIC PAY AND DEDUCTIONS IT = 2.5% OF HIS BASIC PAY



2. CALCULATE THE SALARY OF AN EMPLOYEE GIVEN HIS BASIC PAY,
HRA = 10% OF BASIC PAY, TA=5% OF HIS BASIC PAY AND
DEDUCTIONS IT = 2.5% OF HIS BASIC PAY


SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main(){
double bpay;
printf("\nEnter the basic pay of employee :");
scanf("%lf",&bpay);
printf("Salary==>%lf",(bpay+(bpay*0.10)+(bpay*0.05)+(bpay*0.025)));
}

0 comments:

Post a Comment

 
- |