C# program that uses Math.Pow methodusing System; class Program { static void Main() {// // Compute the squares of the first parameters to Math.Pow. //double value1 =Math.Pow(2, 2); double value2 =Math.Pow(3, 2); double value3 =Math.Pow(4, 2); double value4 =Math.Pow(5, 2);// // Compute the cubes of these values. //double value5 =Math.Pow(2, 3); double value6 =Math.Pow(3, 3); double value7 =Math.Pow(4, 3); double value8 =Math.Pow(5, 3);// // Check some edge cases with the smallest, biggest, and special values. //double value9 =Math.Pow(double.MinValue, double.MaxValue); double value10 =Math.Pow(double.MinValue, 0); double value11 =Math.Pow(double.NaN, 2); double value12 =Math.Pow(double.PositiveInfinity, 2); double value13 =Math.Pow(double.NegativeInfinity, 2);// // Compute fractional powers. //double value14 =Math.Pow(2, 2.1); double value15 =Math.Pow(Math.E, 2); double value16 =Math.Pow(Math.PI, 1);// // Write results to the screen. //Console.WriteLine(value1); Console.WriteLine(value2); Console.WriteLine(value3); Console.WriteLine(value4); Console.WriteLine(value5); Console.WriteLine(value6); Console.WriteLine(value7); Console.WriteLine(value8); Console.WriteLine(value9); Console.WriteLine(value10); Console.WriteLine(value11); Console.WriteLine(value12); Console.WriteLine(value13); Console.WriteLine(value14); Console.WriteLine(value15); Console.WriteLine(value16); } }Output4Two squared.9Three squared.16Four squared.25Five squared.8Two cubed (2 * 2 * 2).27Three cubed (3 * 3 * 3).64Four cubed (4 * 4 * 4).125Five cubed (5 * 5 * 5).Infinity 1 NaN Infinity Infinity 4.28709385014517 7.38905609893065 3.14159265358979

**Next:**The program also cubes those small integers. The Math.Pow method returns a double type number.

**Note:**You can see the program shows what powers are displayed as Infinity and NaN values.

**Note 2:**The double type reserves certain bit arrangements as representations of these special values.

**Note:**The Math.Pow method is implemented in code external to the managed code shipped as part of the .NET Framework.

**Here:**We looked at some common parameter to the Math.Pow method. We noted its exact execution and results.

**Then:**We noted some related issues to computing powers in computer programming languages.