Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

/*program to calculate hra,da in salary if salary less than
10000 then hra15%,da13% otherwise hra20%,da18%/*

Answer Posted / swapnil

#include<stdio.h>
#include<conio.h>
void main()
{
float bs,da,hra;
clrscr();
printf("\n enter the basic salary of employee=");
scanf("%f",&bs);
if (bs<10000)
{
printf("\n da : %f",da=(bs*15)/100);
printf("\n hra : %f",hra=(bs*13)/100);
printf("\n net salary: %f",da+hra);
}
else
{
printf("\n da : %f",da=(bs*20)/100);
printf("\n hra : %f",hra=(bs*18)/100);
printf("\n net salary: %f",da+hra);
}
getch();
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a const pointer?

1043


Is it fine to write void main () or main () in c?

968


How can I find the modification date and time of a file?

1031


How many levels of indirection in pointers can you have in a single declaration?

1029


write a c program in such a way that if we enter the today date the output should be next day's date.

2140


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1083


How do you sort filenames in a directory?

1128


How do c compilers work?

1050


What is the hardest programming language?

1103


What is a sequential access file?

1098


Why is c used in embedded systems?

1065


How do I get an accurate error status return from system on ms-dos?

1077


How can I ensure that integer arithmetic doesnt overflow?

1086


How reliable are floating-point comparisons?

1041


What is the importance of c in your views?

1098