Viewing code of STRUCTCW
// ------ ../cgi-bin/cout/STRUCTCW.CPP --------------
//--- Programmed By Rajesh -----

/*
This is a classwork and a class note by sudarshan sir .
2004 computer engineering batch
Program typed by (c) Rajesh

*/

#include<stdio.h>
#include<conio.h>
struct age
{
int month;
int day;
int year;
};
struct student
{
struct age bday;
int roll;
char name[20];
char address[20];
};


void main()
{


int i,j,no;
struct student stu[20];
printf("how many students:");
scanf("%d",&no);
for(i=0;i<no;i++)
{
printf("%d. Enter name :");
scanf("%s",stu[i].name);
printf("Enter roll:");
scanf("%d",&stu[i].roll);
printf("Enter month of b day:");
scanf("%d",&stu[i].bday.month);
printf("Enter day of b day:");
scanf("%d",&stu[i].bday.day);
printf("Enter year of b day:");
scanf("%d",&stu[i].bday.year);
}
printf("\n\n\nThe datails are:");

for(i=0;i<no;i++)
{
printf("\n Name:%s \tAge:%d-%d-%d",stu[i].name,stu[i].bday.month,stu[i].bday.day,stu[i].bday.year);
printf("\n Roll no:%d \tAddress :%s",stu[i].roll,stu[i].address);
printf("\n\n");
}
getch();
}