w3ajay

tally tutorial point, ms word 2013, ms excel 2013, ms powerpoint 2010,ccc question with answer in hindi 2021, Tally Prime in hindi , tally prime,Python,in python,programming in python,python

Monday, December 30, 2019

C program to evaluate the net salary of an employee given the following constraints


#include <stdio.h>
#include<conio.h>
void  main()
{
//variable to store values
float basic, da, hra, ta;
float pf;
float net_salary;

//input required fields
printf("Enter Basic Salary ($): ");
scanf("%f",&basic);
printf("Enter HRA ($): ");
scanf("%f",&hra);
printf("Enter TA ($): ");
scanf("%f",&ta);

//calculate DA 12% of Basic Salary
da = (basic*12)/100;
//calculate PF 14% of Basic salary
pf = (basic*14)/100;
//calculate net salary
net_salary = basic + da + hra + ta - (pf);
//printing Net salary
printf("Net Salary is: $ %.02f\n",net_salary);
getch();
}

दोस्तों अगर आपको मेरी यह पोस्ट अच्छी लगी हो तो 
      प्लीज  like , share ,कमेंटसब्सक्राइब   जरुर करे जिससे हम आपके 
            लिए ऐसे ही अच्छे से अच्छे पोस्ट लाते  रहे 
अगर आपके पास कोई प्रश्न हो तो कमेंट बॉक्स में उस प्रश्न जरुर लिखे 

              धन्यवाद !

No comments:

Post a Comment

for more information please share like comment and subscribe