ArrayExample3
12345678910111213141516171819
using System;
using System.Collections.Generic;
using System.Linq;
class MainClass {
static void Main() {
string[] cars = new string[4];
cars[0] = "Volvo";
cars[1] = "GM";
cars[2] = "Fiat";
cars[3] = "Tesla";
for (int i = 0; i < cars.Length; i++)
{
Console.Write(cars[i] + " ");
}
}
}
Csharp
INFO