#include<stdio.h>
void main()
{
float basic, hra, da;
printf("Enter basic salary");
scanf("%f",&basic);
if(basic < 5000)
{
hra = 5000 * (15/100);
da = 5000 * (150/100);
}
else if(basic >= 5000)
{
hra = 5000 * (10/100);
da = 5000 * (110/100);
}
printf("Gross salary = %f",(basic + hra + da));
}
void main()
{
float basic, hra, da;
printf("Enter basic salary");
scanf("%f",&basic);
if(basic < 5000)
{
hra = 5000 * (15/100);
da = 5000 * (150/100);
}
else if(basic >= 5000)
{
hra = 5000 * (10/100);
da = 5000 * (110/100);
}
printf("Gross salary = %f",(basic + hra + da));
}