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...

WAP to accept basic salary of an employee?
Calculate it HRA=25%,DA=30%,PF=30%&net salary display all
contents?

Answer Posted / don

#include<stdio.h>
void main()
{
long int bs,da,hra,pf;
printf("\nEnter The Basic Salary of Employee: ");
scanf("%d",&bs);
printf("\nDA : %d",da=bs*30/100);
printf("\nHRA : %d",hra=bs*25/100);
printf("\nPF : %d",pf=bs*30/100);
printf("\nNet Salary: %d",da+hra+pf);
}

Hey frnds pls tell me is it a ryt answer or wrong?
Help me out

Is This Answer Correct ?    49 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the value of static variable in c?

1035


Explain what are header files and explain what are its uses in c programming?

1161


What is a macro, and explain how do you use it?

1086


Explain what is a program flowchart and explain how does it help in writing a program?

1100


What is logical error?

1129


Which programming language is best for getting job 2020?

1053


What is the g value paradox?

1176


What is dangling pointer in c?

1243


Can math operations be performed on a void pointer?

1055


What are the types of operators in c?

1067


What are the advantages and disadvantages of a heap?

1217


int i=10; printf("%d %d %d", i, i=20, i);

1626


int far *near * p; means

3562


What are pointers? Why are they used?

1186


What are all different types of pointers in c?

1012