pow in C# code example
Example 1: c# math power
double pow_ab = Math.Pow(6, 2);
//pow_ab = 36
Example 2: math.pow in C# using loop
static void Main(string[] args)
{
float x = float.Parse(Console.ReadLine());
int y = int.Parse(Console.ReadLine());
float result = CalculatePower(x, y);
Console.WriteLine("{0} to the power of{1} is {2} ", x, y, result);
}
Example 3: how does Pow work C#
//It does to the power of
Pow(2,3)
//this would do 2 to the power of 3