Untitled
unknown
plain_text
2 years ago
355 B
9
Indexable
public void getEven(int[] a)
{
int chan = a[0];
for (int i = 0; i < a.Length; i++)
{
if (a[i] % 2 == 0)
{
chan = a[i];
}
Console.Write(a[i] + " ");
}
Console.WriteLine();
}Editor is loading...