Documente Academic
Documente Profesional
Documente Cultură
HOME ▼
c c++ java data structure python javascript css ajax pl/sql php puzzles c programs c++ programs java
programs
Custom Search
LEARN MORE
This program will read Basic Salary of an employee, calculate other part of the salary on percent
basic and nally print the Gross Salary of the employee.
Here, we are reading basic salary of the employee, and calculating HRA, DA, PF and then Gross
salary of the employee.
int main()
{
char name[30];
float basic, hra, da, pf, gross;
http://www.includehelp.com/c-programs/c-program-to-calculate-gross-salary-of-an-employee.aspx 1/5
4/26/2018 C program to calculate Gross Salary of an employee - IncludeHelp
gets(name);
gross=basic+da+hra+pf;
return 0;
}
Ads
Output
Name: Mike
BASIC: 23000.000000
HRA: 9500.000000
DA: 9500.000000
PF: 2760.000000
***GROSS SALARY: 44760.000000 ***
http://www.includehelp.com/c-programs/c-program-to-calculate-gross-salary-of-an-employee.aspx 2/5
4/26/2018 C program to calculate Gross Salary of an employee - IncludeHelp
http://www.includehelp.com/c-programs/c-program-to-calculate-gross-salary-of-an-employee.aspx 3/5
4/26/2018 C program to calculate Gross Salary of an employee - IncludeHelp
featured posts...
Di erence between %d and %i in C language.
Di erence between printf and sprintf in C language.
Di erence between Sentinel and Counter Controlled loop in C language.
Di erence between Entry Control and Exit Control loop in C language.
Di erence between Unary and Binary Operators in C language.
Di erence between = (Assignment) and == (Equal to) Operators in C language.
Di erence between & (Address Of) and && (Logical AND) Operators in C language.
Di erence between Local and Global variables in C.
http://www.includehelp.com/c-programs/c-program-to-calculate-gross-salary-of-an-employee.aspx 4/5
4/26/2018 C program to calculate Gross Salary of an employee - IncludeHelp
0 Comments www.includehelp.com
1 Login
Sort by Newest
Recommend ⤤ Share
LOG IN WITH
OR SIGN UP WITH DISQUS ?
Name
Keywords (like Linux, Java, Oracle etc) used in this website are the trademarks of their respective owners/company. This website is
not a liated to any company. The tutorials are designed by includehelp Team with the help of well known books and other online
resources. These Tutorials are free for all, for learning purposes only. Enjoy learning:)
Copyright © 2015 - 2017. All Rights Reserved.
http://www.includehelp.com/c-programs/c-program-to-calculate-gross-salary-of-an-employee.aspx 5/5