/*program to calculate hra,da in salary if salary less than
10000 then hra15%,da13% otherwise hra20%,da18%/*
Answer Posted / swapnil
#include<stdio.h>
#include<conio.h>
void main()
{
float 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 ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the process to create increment and decrement stamen in c?
Do you know the purpose of 'register' keyword?
What are the advantages and disadvantages of a heap?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
Write a program to know whether the input number is an armstrong number.
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is scope of variable in c?
Can you explain the four storage classes in C?
What is structure data type in c?
What is the purpose of type declarations?
show how link list can be used to repersent the following polynomial i) 5x+2
Explain what are header files and explain what are its uses in c programming?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is volatile keyword in c?
Does c have class?