#include<stdio.h>
#include<conio.h>
int main() {
float gs,bs,ta,da,hra;
printf("Enter basic salary: ");
scanf("%f",&bs);
da=(25*bs)/100;
ta=(20*bs)/100;
hra=(10*bs)/100;
gs=bs+ta+da+hra;
printf("\nBasic Salary =%f\nTA=%f\nDA=%f\nHRA=%f\nGross salary=%f\n",bs,ta,da,hra,gs);
return(1);
}
#include<conio.h>
int main() {
float gs,bs,ta,da,hra;
printf("Enter basic salary: ");
scanf("%f",&bs);
da=(25*bs)/100;
ta=(20*bs)/100;
hra=(10*bs)/100;
gs=bs+ta+da+hra;
printf("\nBasic Salary =%f\nTA=%f\nDA=%f\nHRA=%f\nGross salary=%f\n",bs,ta,da,hra,gs);
return(1);
}
No comments:
Post a Comment