/* Read and display biodata using structure within structure */
#include<stdio.h>
#include<conio.h>
main()
{
	struct bio
	{
		char name[30];
		int age;
		float salary;
	};
	struct data
	{
		char address[50];
		char state[15];
	};
	struct bio_data
	{
		struct bio a;
		struct data b;
	};
	struct bio_data c;
	clrscr();
	printf("enter  name	age 	salary	address	state\n");
	scanf("%s",c.a.name);
	scanf("%d",&c.a.age);
	scanf("%f",&c.a.salary);
	scanf("%s",c.b.address);
	scanf("%s",c.b.state);
	printf("%s\n%d\n%f\n%s\n%s\n",c.a.name,c.a.age,c.a.salary,c.b.address,c.b.state);
	getch();
}