CProgram

# C Program to Calculate Net Salary

/*Basic salary of an employee is input through the keyboard. The DA
is 25% of the basic salary while the HRA is 15% of the basic
salary. Provident Fund is deducted at the rate of 10% of the gross
salary(BS+DA+HRA).

Program to Calculate the Net Salary.*/
#include <stdio.h>
main()
{
float basic_sal, da, hra, pf, gross_sal, net_sal;
printf(“\nEnter basic salary of the employee: Rs. “);
scanf(“%f”, &basic_sal);
da = (basic_sal * 25)/100;
hra = (basic_sal * 15)/100;
gross_sal = basic_sal + da + hra;
pf = (gross_sal * 10)/100;
net_sal = gross_sal – pf;
printf(“\n\nNet Salary: Rs. %.2f”, net_sal);
getch();
}

Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0

C

C

C

### Reverse the order of each word of the string using pointers

Write a C program to reverse the order of each word of the string using ...

### Convert temperature from degree centigrade to Fahrenheit

Write a C program to convert temperature from degrees Centigrade to Fahrenheit. #include<stdio.h> int main() { float celsius, fahrenheit; ...

### Program to find Average of three Real Numbers

Write a C program to an average of three real numbers. #include <stdio.h> main() { ...

### Find Area of Square & Circumference of a Circle

Write a C program to find the area of a square & circumference of a ...