# include < stdio.h >
# include < conio.h >
 void main ( )
	{
	struct empdt
	{
	char emphname[10];
	int hnum;
	};
	struct employee
	{
	char empname [25];
	int empno;
	struct empdt empad;
	}e1;
	clrscr();
	printf("\n\n Enter Employee details\n");
	printf ("\n Enter the number: ");
	scanf("%d",&e1.empno);
	printf ("\n Enter the name: ");
	scanf("%s",&e1.empname);
	printf ("\n Enter house number: ");
	scanf("%d",&e1.empad.hnum);
	printf ("\n Enter house name: ");
	scanf("%s",&e1.empad.emphname);
	printf("\n\n Entered details of employee\n\n");
	printf ("\n Employee Number = %d\n",e1.empno);
	printf ("\n Employee Name = %s\n",e1.empname);
	printf ("\n Employee House Number = %d\n",e1.empad.hnum);
	printf ("\n Employee House Name = %s\n",e1.empad.emphname);
	getch();
	}
<< Back

Our aim is to provide information to the knowledge seekers.


comments powered by Disqus




Footer1