/*Newly added tags for bing*/ Unipune Codes: Find Net Salary of an Employee

Pages

Sunday, 2 May 2021

Find Net Salary of an Employee

 


       
/*
The basic salary of an employee is decided at the time of employment. 
Apart from the basic salary; employee gets 10% of basic as have rent
30% basic as D.A. A professional tax as 5% at basic is deducted from 
salary. Accept employee id and basic salary of employee % find net
salary.
*/

#include<stdio.h>
main()

{
    int b;
    float t;

    printf("Enter b- ");
scanf("%d",&b); t=b+(0.1)*b+(0.3)*b-(0.05)*b;
printf(" Net Salary=%f",t); }


No comments:

Post a Comment