by Dinesh Thakur Category: C Programming (Pratical)

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  

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.

Search Content