C program to find Gross Salary of an Employee

In this tutorial you will learn about the C program to find Gross Salary of an Employee and its application with practical example.

C program to find Gross Salary of an Employee

In this tutorial, we will learn to create a C program that will calculate the Gross Salary of an Employee using C programming.

Prerequisites

Before starting with the tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C programming.
  • Conditional statement in C programming.

Program to Calculate Gross Salary of an Employee:-

In c programming, it is possible to take numerical input from the user and calculate the Gross using Basic Salary with the help of a very small amount of code. The C language has many types of header libraries which has supported function in them, with the help of these files the programming is easy.

Algorithm:-

With the help of this program, we can calculate the bonus & Gross using Basic Salary.

 

Output:-

In the above program, we have first initialized the required variable.

  • basic = it will hold the float value for the basic salary.
  • bonus = it will hold the float value for the bonus salary.
  • gross = it will hold the float value for the gross salary.

Input salary for the employee.

Bonus Salary for the employee.

Gross Salary for the employee.

Printing output for salary for the employee.

In this tutorial we have learn about the C program to find Gross Salary of an Employee and its application with practical example. I hope you will like this tutorial.