Wednesday, December 16, 2024

Program to calculate Gross Salary of Person

Problem Statement :
Write a C Program to Calculate Gross Salary of an Employee
  1. Basic Salary is Provided by User
  2. Dearness Allowance (da) is 40% of Basic Salary;
  3. 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

Copyright Notice | Link Exchange | Privacy Policy |Contact Us

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls