/*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
What is an example of structure?
Write a simple code fragment that will check if a number is positive or negative.
What is identifier in c?
Explain what is output redirection?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
How does normalization of huge pointer works?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Difference between pass by reference and pass by value?
what are the 10 different models of writing an addition program in C language?
What are pointers? What are different types of pointers?