Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute C# Sharp Online

using System.IO;
using System;

class Program
{
    static void Main()
    {
     /*int [] numbers = new int [5];
      
     // numbers [0] = 4;
      //numbers [1] = 8;
      //numbers [2] = 15;
      //numbers [3] = 16;
      numbers [4] = 23;
      
      //Console.WriteLine(numbers[1]);
      Console.WriteLine(numbers.Length);
      Console.ReadLine();
      int [] numbers = new int []{4, 8, 15, 16, 23, 42};*/
      string[] names = new string [] {"Eddie", "Alex", "Micheal", "David Lee"};
     /* for (int i =0; i < names.Length; i++)
      {
          Console.WriteLine(names[i]);
      }
       Console.ReadLine();*/
       foreach ( string name in names)
       {
        Console.WriteLine(name);   
       }
       Console.ReadLine();
       }
      }

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.