public string streetCred;
public Car(int d, double p, string s)
public static void Main()
pi= new int[10] {1,4,1,5,9,2,6,5,3,5};
int [,] twoPis = {{1,2},{4,6},{1,5},{5,3},{9,5}};
Car truckNorris = new Car(2,2500.50,"2Legit2Quit");
Console.WriteLine("Truck Norris has " + truckNorris.doors + " doors, cost $" + truckNorris.price + ", and is seen on the streets as " +truckNorris.streetCred + ".");
Console.WriteLine("\nThe first Array's loop prints:\n");
for(int i = 0; i<=pi.Length-1; i++)
Console.WriteLine("Element " + i +" in the \"Pi\" array is: " + pi[i]);
Console.WriteLine("\nFor the 2D Array:\n");
foreach( int n in twoPis)
{ Console.WriteLine("The element is: " +n);}
Console.WriteLine("-----------------------------");
for(int row=0; row < twoPis.GetLength(0); row++)
for(int col=0; col < twoPis.GetLength(1); col++)
Console.WriteLine("Element [" + row + "," + col +"] is: " + twoPis[row,col]);