mirror of
https://gitlab.com/mfocko/CodeWars.git
synced 2024-11-22 08:33:48 +01:00
11 lines
168 B
C#
11 lines
168 B
C#
public class Kata
|
|
{
|
|
public static bool Include(int[] arr, int item)
|
|
{
|
|
foreach (var e in arr) {
|
|
if (e == item) return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|