/*program to calculate hra,da in salary if salary less than
10000 then hra15%,da13% otherwise hra20%,da18%/*
Answer Posted / riteshvk007
#include<stdio.h>
#include<conio.h>
void main()
{
int bs,da,hra;
clrscr();
printf("\n enter the basic salary of employee");
scanf("%d",&bs);
if (bs>10000)
{
printf("\n da : %d",da=bs*15/100);
printf("\n hra : %d",hra=bs*13/100);
printf("\n net salary: %d",da+hra);
}
else
{
printf("\n da : %d",da=bs*20/100);
printf("\n hra : %d",hra=bs*18/100);
printf("\n net salary: %d",da+hra);
}
getch();
}
plese cheackout mistakes i can't run successfully this program
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
Can you assign a different address to an array tag?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Why is c called a structured programming language?
Can the curly brackets { } be used to enclose a single line of code?
What is void main ()?
How do you write a program which produces its own source code as output?
Explain what is wrong with this program statement?
Is register a keyword in c?
How can you tell whether a program was compiled using c versus c++?
Why is c called a mid-level programming language?
Explain what is the difference between a free-standing and a hosted environment?
Can we add pointers together?
Is null valid for pointers to functions?
Process by which one bit pattern in to another by bit wise operation is?