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
Is c high or low level?
Can a pointer be volatile in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Why we use conio h in c?
How do you determine a file’s attributes?
Explain what is a 'locale'?
If fflush wont work, what can I use to flush input?
Are the variables argc and argv are local to main?
What is a pointer value and address in c?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
Write a program to reverse a given number in c language?
Can you apply link and association interchangeably?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Do variables need to be initialized?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }