using System;
using System.Collections.Generic;
using System.Linq;
class ExempleSelectOrder
{
static void Main()
{
string[] capitals = { "New York", "Madrid", "Londre", "Milan" };
IEnumerable req =
from n in capitals
where n.Contains("M")
orderby n.Length
select n.ToUpper();
foreach (string capital in req)
Console.Write(capital + "n");
}
}