programming-examples/c-sharp/Mathematics/C# Program to Calculate Fractional Power.cs
2019-11-15 12:59:38 +01:00

22 lines
536 B
C#

/*
* C# Program to Calculate Fractional Powers
*/
using System;
class Program
{
static void Main()
{
double value1 = Math.Pow(2, 2.1);
double value2 = Math.Pow(Math.E, 2);
double value3 = Math.Pow(Math.PI, 1);
Console.WriteLine("Result : {0}", value1);
Console.WriteLine("Result : {0}", value2);
Console.WriteLine("Result : {0}", value3);
Console.ReadLine();
}
}
/*
Result : 4.28709385014517
Result : 7.38905609893065
Result : 3.14159265358979