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

How do I copy files?

619


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1477


What does c value mean?

618


How can I rethow can I return a sequence of random numbers which dont repeat at all?

700


Is c dynamically typed?

665






When can a far pointer be used?

584


What is the difference between typedef struct and struct?

592


What is keyword with example?

630


Why void main is used in c?

559


Can the sizeof operator be used to tell the size of an array passed to a function?

610


What is the use of getchar() function?

624


What are the 4 types of organizational structures?

620


What does it mean when a pointer is used in an if statement?

596


What is wrong in this statement?

601


How many types of arrays are there in c?

591