#include<stdio.h>

struct STUDENT{

     int id;

     double height;

     double weight;

     char name[12];

 };

void print_data(struct STUDENT *data);

void up_data(struct STUDENT *ptr);

main(void)

{

 struct STUDENT stdata={2018,175.5,57.0,"John"};

 

 print_data(&stdata);

 up_data(&stdata);

 print_data(&stdata);

}

 

void print_data(struct STUDENT *data)

{

 printf("ID = %4d, Height = %6.1f, Weight = %5.1f, Name = %s\n",

      data->id,data->height,data->weight,data->name);

}

 

void up_data(struct STUDENT *ptr)

{

 double h,w;

 printf("Height, Weight?\n");

 scanf("%lf,%lf",&h,&w);

 ptr->height=h;

 ptr->weight=w;

}