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
Can we change the value of static variable in c?
Explain what are header files and explain what are its uses in c programming?
What is a macro, and explain how do you use it?
Explain what is a program flowchart and explain how does it help in writing a program?
What is logical error?
Which programming language is best for getting job 2020?
What is the g value paradox?
What is dangling pointer in c?
Can math operations be performed on a void pointer?
What are the types of operators in c?
What are the advantages and disadvantages of a heap?
int i=10; printf("%d %d %d", i, i=20, i);
int far *near * p; means
What are pointers? Why are they used?
What are all different types of pointers in c?