using System; using System.Linq; public class Test { public static void Main() { var query = Enumerable.Range(2, 10) .Select(c => new { Length = 2 * c, Height = c * c - 1, Hypotenuse = c * c + 1 }) .Select(x => string.Format("{0,4}{1,4}{2,4}", x.Height, x.Hypotenuse, x.Length)); foreach (var x in query) Console.WriteLine(x); } }