House rent = 45% of the basic pay.
Medical rent = 15% of the basic pay.
Conveyance allowence = 700(rupees).
float bpay, hr, ma, ca, gpay;
printf(“\n Enter Basic Pay of an emploayee: “);
hr=0.45*bpay; //45% is equal to 0.45
ca=700; //fixed amount
printf(“\n Basic pay of an employee: “);
printf(“\n House rent allowance is = %0.2f”,hr) ;
printf(“\n Medical Allowance is = %f”,ma);
printf(“\n Conveyance allowace is = 700″);
printf(“\n Gros pay os an employee is =%0.2f”,gpay);