static bool IsElement(int[] arr, int x)
while(arr[i] != x && i < arr.Length - 1)
public static void Main()
Console.Write("Enter the elements: ");
int[] arr = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
Console.Write("Enter the single element: ");
int x = int.Parse(Console.ReadLine());
if(IsElement(arr, x) == true)
Console.Write("We see the element");
Console.Write("We don't see the element");