public static void Main()
Console.Write("Enter size of array : ");
int m = Int32.Parse(Console.ReadLine());
int[] array1 = new int[m];
Console.WriteLine("Enter any " + m + " number in the elements of array");
for (int i = 0; i < m; i++)
array1[i] = Int32.Parse(Console.ReadLine());
Console.WriteLine("Enter the element to be searched:");
int n = Int32.Parse(Console.ReadLine());
for (int i = 0; i < n; i++)
Console.WriteLine("Found {0} at index{1}", n, index);
Console.WriteLine("{0} Not Found", n);