/*program to calculate hra,da in salary if salary less than
10000 then hra15%,da13% otherwise hra20%,da18%/*
Answer Posted / parmeshwar
#include<stdio.h>
#include<conio.h>
void main()
{
long int bs,da,hra;
clrscr();
printf("\n enter the basic salary of employee=");
scanf("%f",&bs);
if (bs<10000)
{
printf("\n da : %f",da=(bs*15)/100);
printf("\n hra : %f",hra=(bs*13)/100);
printf("\n net salary: %f",da+hra);
}
else
{
printf("\n da : %f",da=(bs*20)/100);
printf("\n hra : %f",hra=(bs*18)/100);
printf("\n net salary: %f",da+hra);
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
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.
How can I sort more data than will fit in memory?
How macro execution is faster than function ?
What is sizeof int?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What is nested structure with example?
What does printf does?
What is wild pointer in c with example?
Explain how do you determine a file’s attributes?
What is the maximum no. of arguments that can be given in a command line in C.?
Is main is user defined function?
What is wrong with this code?
Explain what is the benefit of using const for declaring constants?
Explain how to reverse singly link list.