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
How do I copy files?
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
What does c value mean?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Is c dynamically typed?
When can a far pointer be used?
What is the difference between typedef struct and struct?
What is keyword with example?
Why void main is used in c?
Can the sizeof operator be used to tell the size of an array passed to a function?
What is the use of getchar() function?
What are the 4 types of organizational structures?
What does it mean when a pointer is used in an if statement?
What is wrong in this statement?
How many types of arrays are there in c?