C#NumberMath.Pow

Returns a specified number raised to the specified power.

문법

Math.Pow(x, y)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

Console
WriteLine
Math
Console.WriteLine(Math.Pow(2, 10));   // 1024
Console.WriteLine(Math.Pow(9, 0.5));  // 3