Answers for "what must i include to use math.pow in c#"


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);

Posted by: Guest on May-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language