PPS Practical 13
- Aim: Write a c program to prepare pay slip using following data.Where, Da = 10% of basic, Hra = 7.50% of basic, Ma = 300,Pf = 12.50% of basic, Gross = basic + Da + Hra + Ma, Nt = Gross - Pf.
- Code:
//For turbo C++ remove below comments #include <stdio.h> //#include<conio.h> void main() { float basic,Da,Hra,Pf,Gross,Nt,Ma=100; // clrscr(); printf("Enter Basic : "); scanf("%f",&basic); Da=basic*0.10; Hra=0.0750*basic; Pf=0.1250*basic; Gross = basic + Da + Hra + Ma; Nt = Gross-Pf; printf("----Praparring a Pay Slip----"); printf("\nDa:%f \nHra:%f \nPf:%f \nGross:%f \nNt:%f",Da,Hra,Pf,Gross,Nt); // getch(); }
- Output:

Comments
Post a Comment