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
In a byte, what is the maximum decimal number that you can accommodate?
What is wild pointer in c with example?
Is c is a low level language?
define string ?
Did c have any year 2000 problems?
how we can make 3d venturing graphics on outer interface
What is null pointer in c?
What is the general form of a C program?
How to draw the flowchart for structure programs?
What is multidimensional arrays
What is getch() function?
What is the meaning of && in c?
What is a program flowchart?
What are the two forms of #include directive?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34