#include
#include
void main ()
{
int a[10],m,i,x;
clrscr();
printf("Enter the array size:");
scanf("%d",&m);
printf("Enter the element of the array number :\n");
for(i=0;i
{
printf("Element[%d]=",i+1);
scanf("%d",&a[i]);
}
printf("Enter the searching number :");
scanf("%d",&x);
for(i=0;i
{
if(a[i]==x)
break;
}
if(i
printf("FOUND");
else
printf("NOT FOUND");
getch();
}
0 comments:
Post a Comment