Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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

        }
Source by www.csharp-console-examples.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
6+3 =