22 lines
536 B
C#
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 |