/*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
What is a void pointer? When is a void pointer used?
Differentiate between the = symbol and == symbol?
What is c language & why it is used?
What is the best way to store flag values in a program?
What is the difference between text and binary modes?
When can a far pointer be used?
What do mean by network ?
What are the advantages of union?
Explain the bubble sort algorithm.
What does dm mean sexually?
Can you tell me how to check whether a linked list is circular?
What do the functions atoi(), itoa() and gcvt() do?
How can I generate floating-point random numbers?
How pointers are declared?
Explain b+ tree?