public static void Main()
Customer[] customers = new Customer[3];
customers[0] = new Customer() { firstname = "Joe", lastname= "Smith", arrayoforders = new Order[3] };
customers[0].arrayoforders[0] = new Order() { description = "Book", price =100M , quantity = 1 };
customers[0].arrayoforders[1] = new Order() { description = "Car", price = 19.9M, quantity = 2 };
customers[0].arrayoforders[2] = new Order() { description = "Plane", price = 20M, quantity = 3 };
customers[1] = new Customer() { firstname = "Sally", lastname = "Jones", arrayoforders = new Order[3] };
customers[1].arrayoforders[0] = new Order() { description = "Shoe", price = 300M, quantity = 1 };
customers[1].arrayoforders[1] = new Order() { description = "Dress", price = 25000M, quantity = 2};
customers[1].arrayoforders[2] = new Order() { description = "Shoes", price = 30M, quantity = 1 };
customers[2] = new Customer { firstname = "Ricky", lastname = "White", arrayoforders = new Order[3] };
customers[2].arrayoforders[0] = new Order() { description = "Coat", price = 101M, quantity = 2 };
customers[2].arrayoforders[1] = new Order() { description = "Jacket", price = 110M, quantity = 1 };
customers[2].arrayoforders[2] = new Order() { description = "Razor", price = 19.99M, quantity = 1 };
for ( int x=0;x<customers.Length;x++)
Console.WriteLine("\n\n{0} {1}\n",customers[x].firstname,customers[x].lastname);
for(int y=0;y<customers[x].arrayoforders.Length;y++)
if(customers[x].arrayoforders[y]!=null)
Console.Write("{0}-${1}-{2},",customers[x].arrayoforders[y].description,customers[x].arrayoforders[y].price,customers[x].arrayoforders[y].quantity);
public string description;
public Order[] arrayoforders;