namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int x = 0; for (x = 1; x <= 10; x ++ ) { Console.WriteLine(Math.Pow(x, 4)); } Console.ReadLine(); } } }
Aynı sayıların küpünü almak için ise ;
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int x = 0; for (x = 1; x <= 10; x ++ ) { Console.WriteLine(Math.Pow(x, 3)); } Console.ReadLine(); } } }