#include<stdio.h>
int main()
{
int s, n, a;
printf("Input the number of array:\n\n");
scanf("%d", &a);
int p[a];
printf("\nNow input the value for those %d array:\n\n", a);
for(n=0;n<a;n++)
{
scanf("%d", &p[n]);
}
printf("\nThis is the total number of array and its individual value:\n\n");
for(n=0;n<a;n++)
{
printf("%d ", p[n]);
}
printf("\nNow Enter the value you want to search: ");
scanf("%d", &s);
for(a=0;a<n && s!=p[a]; a++)
{
}
if (a < n)
{
printf("\nNumber found at the location = %d\n", a + 1);
}
else
{
printf("\nNumber not found\n");
}
return (0);
}