Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
355 B
2
Indexable
Never
            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();
        }