static void Main(string[] args) { foreach (int i in Power(2, 8)) { Console.Write("{0} ", i); } Console.ReadKey(); }