#include<iostream.h>
#include<conio.h>
struct employee
{
char name[20];
float bp;
float da;
float hra;
float netpay;
}emp;
void main()
{
employee npay(employee emp);
employee y;
clrscr();
cout<<"\n Enter the Name, Basic Pay, Da, Hra :";
cin>>emp.name>>emp.bp>>emp.da>>emp.hra;
y= npay(emp);
cout<<"\nNet pay is : "<<y.netpay;
getch( );
}
employee npay(employee z)
{
z.netpay =z.bp + z. da +z.hra;
return(z);
}