Demo entry 6768242

Code

   

Submitted by anonymous on Nov 02, 2018 at 18:05
Language: C#. Code size: 427 Bytes.

class Program
    {
        static void Main(string[] args)
        {
            // Объявляем массив
            int[] myArr = new int[5];

            // Инициализируем каждый элемент массива вручную
            myArr[0] = 100;
            myArr[1] = 23;
            myArr[2] = 25;
            myArr[3] = 31;
            myArr[4] = 1;

            foreach (int i in myArr)
                Console.WriteLine(i);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).