void main()
{
int a[10],n,i,k=0;
clrscr();
printf("enter the numbers");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
}
printf("enter the number which you want to search");
scanf("%d",&n);
for(i=0;i<10;i++)
{
if(a[i]==n)
k++;
}
if(k==0)
printf("the entered number is not present ");
else
printf("the entered number is=%d occurs = %d times",n,k);
getch();
}
{
int a[10],n,i,k=0;
clrscr();
printf("enter the numbers");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
}
printf("enter the number which you want to search");
scanf("%d",&n);
for(i=0;i<10;i++)
{
if(a[i]==n)
k++;
}
if(k==0)
printf("the entered number is not present ");
else
printf("the entered number is=%d occurs = %d times",n,k);
getch();
}