using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
publicclass MainClass {
publicstaticvoid Main() {
string[] digits = { "zero", "one", "two", "three"};
var sortedDigits =
from d in digits
orderby d.Length, d
select d;
Console.WriteLine("Sorted digits:");
foreach (var d in sortedDigits) {
Console.WriteLine(d);
}
}
}