बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

Showing posts with label write a c program to calculate net salary of an employee. Show all posts
Showing posts with label write a c program to calculate net salary of an employee. Show all posts

Structure salary program

 Program to Calculate the salary for Employee using Structure c program example

#include<stdio.h>
struct Employee
 {
char name[20];
int id,basic;
float salary; };
int main()
{ struct Employee e;
float ta,da,hra;
printf("\nEnter the details of the Employee\n");
scanf("\n%s %d %d",e.name,&e.id,&e.basic); ta=0.2 * e.basic; da=0.4 * e.basic; hra=0.15 * e.basic; e.salary=e.basic + ta +da + hra;
printf("\nthe details of the employee are\n");
printf("\n %s \n %d \n %.2f \n",e.name ,e.id ,e.salary);
return 0; }



  • c program for employee salary calculation using structure
  • write a c program to calculate net salary of an employee
  • c program for employee details using structure
  • c program to calculate salary and pf
  • write a program to calculate net salary in c++
  • c program for employee details using nested structure
  • employee salary calculation program in c
  • c program to calculate the salary of an employee given his basic pay







C Program example List