You are on page 1of 1

#include<iostream.

h>
#include<conio.h>
void main()
{
clrscr();
int a[5]={41,32,100,81,16};
int check;
cout<<"enter element:";
cin>> check;
int i;
for(i=0;i<5;i++)
{if (check==a[i])
cout<<"found at location"<<i++;
break;
}
getch();
}

You might also like