Write a program that searches any number from an array.

#include<stdio.h>
#include<conio.h>

void main()
{
    int n,i,a[100],p,f;
    clrscr();
    printf("How many numbers, you input in array : ");
    scanf("%d",&n);

    for(i=0;i<n;i++)
    {
       printf("\na[%d] = ",i+1);
       scanf("%d",&a[i]);
    }
   
    printf("\nEnter any number to search : ");
    scanf("%d",&p);
    f=0;
    for(i=0;i<n;i++)
       if(a[i]==p)
          f=1;

    if(f==1)
       printf("\n%d is found in the array....",p);
    else
       printf("\n%d is not found in the array....",p);

    getch();
}

///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........