C Program to find Gross Salary.
C Program to find Gross Salary. This Program belongs to beginners who are learning C programming and want to make small projects in it, to clear their concept of c programming. So, With the help of this program, the employee knows the exact salary paid by a company to him.
Source Code
#include<stdio.h>
#include<conio.h>
void main()
{
float bs,da,hra,gs;
printf("Enter the Basic Salary=");
scanf("%f",&bs);
da=0.4*bs;
hra=0.2*bs;
gs=bs+hra+da;
printf("Your Dearness allowance=%f",da);
printf("\nYour House Rent allowance=%f",hra);
printf("\nYour Gross Salary is=%f",gs);
getch();
}