public string streetCred;
public Car(int d, double p, string s)
public static void Main()
Car car_one = new Car(4, 30000.00, "Yes");
Console.WriteLine("-----Car object-----" + "\n");
Console.WriteLine("Doors: " + car_one.Doors + "\n" + "Price: " + car_one.Price + "\n" + "Street Cred?: " + car_one.streetCred);
Console.WriteLine("\n" + "-----Array 1-----" + "\n");
int[] numbers = {1, 4, 1, 5, 9, 2, 6, 5, 3, 5};
while (index < numbers.Length)
Console.WriteLine("This element is: " + numbers[index]);
Console.WriteLine("\n" + "-----Array 2-----" + "\n");
int[,] number = { {1, 4, 1, 5, 9}, {2, 6, 5, 3, 5} };
foreach (int i in number)
System.Console.WriteLine("This element is: " + i);