public static bool IsExist(int[] arr, int n)
for (int i = 0; i < arr.Length; i++)
public static bool AllIncluded(int[] a, int[] b)
for (int i = 0; i < b.Length; i++)
if (IsExist(a, b[i]) == false)
public static void Main()
int[] a = {18, 5, 9, 6, 8, 22, 13, 7};
int[] c = {22, 23, 9, 18};
Console.WriteLine(AllIncluded(a, b));
Console.WriteLine(AllIncluded(a, c));
Console.WriteLine(IsExist(a, 6));
Console.WriteLine(IsExist(a, 23));