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
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Why is c used in embedded systems?
What is the difference between printf and scanf in c?
What is use of null pointer in c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
p*=(++q)++*--p when p=q=1 while(q<=6)
What is identifier in c?
What is the default value of local and global variables in c?
what are the 10 different models of writing an addition program in C language?
What does main () mean in c?
What are the features of the c language?
Can a pointer point to null?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Why double pointer is used in c?