#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<process.h>
#define MAX 3
void main()
{
 char T[10];
 int i;
 float n;
 struct price_list {
		     float price;
		     char item[10];
		   } p[MAX];
 clrscr();
 scanf("%f",&n);
 printf("Enter the %d items and their corresponding price one by one\n",MAX);
 for(i=0;i<MAX;i++)
 scanf("%s%f", p[i].item,&p[i].price);

 printf("Enter the item:\n");
 scanf("%s",T);
 i=0;
 while(i<MAX)
 {
   if(strcmp(T,p[i].item)==0)
   {
     printf("\t%s            %f",p[i].item, p[i].price);
     getch();
     exit(0);

   }
   else
    i++;
  }
    printf("The item is not found");

  getch();
}
