#include<stdio.h>
#include<conio.h>
void main()
{
float bs,hra,da,gs,ns;
printf("\n\n Enter your Basic Salary: ");
scanf("%f",&bs);
hra=bs*(25.0/100);
da=bs*(15.0/100);
gs=hra+da+bs;
ns=gs;
printf("\n\n Gross salary=%f \n\n Net salary=%f",gs,ns);
getch();
}
#include<conio.h>
void main()
{
float bs,hra,da,gs,ns;
printf("\n\n Enter your Basic Salary: ");
scanf("%f",&bs);
hra=bs*(25.0/100);
da=bs*(15.0/100);
gs=hra+da+bs;
ns=gs;
printf("\n\n Gross salary=%f \n\n Net salary=%f",gs,ns);
getch();
}