# include stdio.h>
# include string.h>
# include conio.h>
void main()
{
int i=0,j=0,b=0,count=0;
int a[100];
for(i=0;i<100;i++)
{
a[i]=0;
}
i=0;
clrscr();
printf("\nENTER THE LIMIT OF NO: ");
flushall();
scanf("%d",&j);
for(i=0;i
{
printf("\nENTER THE NO %d:-",i+1);
scanf("%d",&a[i]);
}
printf("\nENTER THE NO THAT U WANT TO COUNT: ");
flushall();
scanf("%d",&b);
for(i=0;i
{
if(b==a[i])
{
count++;
}
}
printf("\nTHE NO %d IS REPEATED %d TIMES",b,count);
getch();
}
OUTPUT :
ENTER THE LIMIT OF NO: 4
ENTER THE NO 1 : 5
ENTER THE NO 2 : 4
ENTER THE NO 3 : 4
ENTER THE NO 4 : 4
THE NO 4 IS REPEATED 3 TIMES