using System; public class Example { public static void Main() { int value = 1000; for (int power = 0; power <= 32; power++) Console.WriteLine("{0}^{1} = {2:N0}", value, power, (long)Math.Pow(value, power)); } }