#include<stdio.h>

main(void)

{

 struct DATE{

     int year;

     int month;

     int day;

 };

 struct STUDENT{

     int id;

     struct DATE birthday;

 };

 

 struct STUDENT stdata={2018,{1966,2,22}};

 

 printf("ID = %4d, Birthday = %4d/%2d/%2d\n",stdata.id,

      stdata.birthday.year,stdata.birthday.month,stdata.birthday.day);

 

 printf("Enter ID =");

 scanf("%d",&stdata.id);

 printf("Enter Birthday (year/month/day) =");

 scanf("%d/%d/%d",&stdata.birthday.year,&stdata.birthday.month,&stdata.birthday.day);

 

 printf("ID = %4d, Birthday = %4d/%2d/%2d\n",stdata.id,

      stdata.birthday.year,stdata.birthday.month,stdata.birthday.day);

}