Turn Desktop View Off
by Dinesh Thakur

In this program user ask to calculate the gross salary of employees. To calculate the gross salary all the facts in salary like da,hra,basic salary also included. The addition of all salary element show out the gross salary chart.

In this program user declare the float type variables to store the content or value. After entering the basic salary user ask to find the hra, da with manipulation to basic salary with required conditions.. After calculating the elements add them all to find the gross salary. In the last to print out the gross salary chart on screen.
Problem Statement:
This is C program to calculate the gross salary of organizational employees.

  1. Declaring the variable.
  2. Finding the Hra, Da of an employee.
  3. Calculate the gross salary.
  4. Display the result on the screen.

Here is C source code for calculating the gross salary of employees. The output of this program shown below.

void main()
        float da,hra,bs,gs;
        printf("Enter the Basic Salary : ");
        printf("The Gross Salary is : %f",gs);
Output :

C Program Calculate Basic Salary and Grow Salary of a Employee