#include<stdio.h>
#include<conio.h>
void main()
{
int a[5],i,b,f=0;
clrscr();
for(i=0;i<5;i++)
{
scanf("%d",a[i]);
}
printf("enter value for found");
scanf("%d",&b);
for(i=0;i<5;i++)
{
if(a[i] == b)
{
f=1;
break:
}
}
if(f == 1)
printf("found");
else
printf("not found");
getch();
}
No comments:
Post a Comment