#include<stdio.h>
struct node{
  char name[20];
  int no;
  struct node *next;
  }*start = NULL;
void add(){
  struct node *t, *temp;
  t = start;
  temp = (struct node *)malloc(sizeof(struct node));
  printf("\nEnter the customer's name: ");
  gets(temp->name);
  printf("\nEnter the phone number: ");
  scanf("%d", &temp->no);
  if(start ==  NULL){
    start = temp;
    start->next = NULL;
    }
  else{
    while(t->next!=NULL)
      t = t->next;
    t->next = temp;
    t = temp;
    t->next = NULL;
    return;
    }
void display(){
  struct node *temp;
  temp = start;
  if(temp == NULL){
    printf("\nList empty.");
    return;
    }
  while(temp!=NULL){
    printf("\nInfo: Cust. name: %s\tCust. phone: %d", temp->name, temp->no);
    temp = temp->next;
    }
  }
void main(){
  int n;
  n=1; 
  while(n){
    add(); 
    display();
    scanf("%d", &n);
    }
 return;
}       
