C program to find the gross salary of a person whose DA & HRA percentages and basic salary is given.

#include<stdio.h>
#include<conio.h>
void main()
{
float b,d,h,g;
puts("Enter the basic salary");
scanf("%f",&b);
puts("Enter the DA percentage");
scanf("%f",&d);
puts("Enter the HRA ppercentage");
scanf("%f",&h);
g=b+((b*(d+h))/100);
printf("Gross Salary=%.2f Rs.",g);
}

Comments