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
What is ## preprocessor operator in c?
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
Explain a file operation in C with an example.
Should I learn data structures in c or python?
How to declare pointer variables?
Is there a way to jump out of a function or functions?
Is a house a mass structure?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Can we access array using pointer in c language?
Explain heap and queue.
What is c value paradox explain?
What is the data segment that is followed by c?
Not all reserved words are written in lowercase. TRUE or FALSE?
What do you mean by c?
What is 1d array in c?