#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));
}
3 comments: (+add yours?)
I really get what i was looking for. Waiting for your next post to live.
Your site is very good. There are useful information and most importantly, for sharing great. you have posted.
thanks for your comments !!!
ask me anything i wil help u out....
Post a Comment