/*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
Is r written in c?
Write a program to print “hello world” without using semicolon?
How many levels of pointers can you have?
What is typedef example?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Is it fine to write void main () or main () in c?
What does. int *x[](); means ?
What is null pointer in c?
i want to know the procedure of qualcomm for getting a job through offcampus
What language is c written?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is dynamic dispatch in c++?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Why is c so popular?
What is structure padding and packing in c?