#include <stdio.h>
#include <stdlib.h>
typedef struct node
{
int data;
struct node *next;
}list;
list *create()
{
list *p,*s,*h;
int x;
h=(list *)malloc(sizeof(list));
h->next=NULL;
scanf(“%d”,&x);
p=h;
while(x!=-10)
{
s=(list *)malloc(sizeof(list));
s->data=x;
p->next=s;
p=s;
scanf(“%d”,&x);
}
p->next=NULL;
return h;
}
/*insert(list *h,int x)
{
}*/
main()
{
list *head,*p;
int y;
head=create();
for(p=head->next;p!=NULL;p=p->next)
printf("%d ",p->data);
}