/* Read and display 10 employees biodata */
#include< stdio.h >
main()
{
	struct bio
	{
		char name[30];
		int age;
		char design[20];
		long int salary;
	};
	struct bio x[10];
	int i,n;
	clrscr();
	printf ("enter how many records do you want to enter\n");
	scanf("%d",&n);
	printf("enter  name	age 	designation salary \n");
	for(i=0;i< n;i++)
	{
		scanf("%s%d%s%ld",x[i].name,&x[i].age,x[i].design,&x[i].salary);
	}
	for(i=0;i< n;i++)
	{
		printf("%s\t%d\t%s\t%ld\n",x[i].name,x[i].age,x[i].design,x[i].salary);
	}
	getch();
}
/* Exercise 1: To read and display bio_data until name="stop"
	    2: To read and display bio_data using typedef
*/