ShriRam Changed status to publish July 15, 2022
#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i,key,count=0;
printf("Enter 10 values : ");
for(i=0; i<10; i++)
scanf("%d",&a[i]);
printf("Enter value to be Searched : ");
scanf("%d",&key);
for(i=0; i<10; i++)
if(a[i]==key)
count=count+1;
printf("%d found %d times",key,count);
getch();
}
ShriRam Changed status to publish July 15, 2022