#include#includestruct List { int data; struct List*next; }; typedef struct List node; typedef node*link; void main() { link ptr,head,tail; int num,i; tail=(link)malloc(sizeof(node)); tail一>next=(1): ptr=tail; printf("\nplease input data:\n"); for(i=0;i<=4;i++) { scanf("%d",(2)): ptr->data=num; head=(link)malloc(sizeof(node)); head一>next= (3) ; ptr=head; } ptr=(4) ; while(ptr!=NULL) { printf("the value is%d.\n",(5)); ptr=ptr一>next; } }