Untitled

Anonymous
plain_text
07/29/2023 11:20 AM
476 B
21
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...