Write a C Program to Calculate Gross Salary of an Employee
- Basic Salary is Provided by User
- Dearness Allowance (da) is 40% of Basic Salary;
- House Rent Allowance (da) is 20% of Basic Salary;
#include<stdio.h> #include<conio.h> void main() { float bp,da,hra,grpay; clrscr(); printf("\nEnter the Basic Pay : "); scanf("%f",&bp); da = 0.4 * bp; hra = 0.2 * bp; grpay = bp + da + hra ; printf("\nBasic Pay : %f",bp); printf("\nDearness Allowance : %f",da); printf("\nHouse Rent Allowance : %f",hra); printf("\nGross Pay : %f",grpay); getch(); }
0 comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email