The source code to demonstrate the use of Exp() method of Math class is given below. The given program is compiled and executed successfully.
using System;
class Sample
{
//Entry point of Program
static public void Main()
{
double E = 0.0;
E = Math.Exp(2);
System.Console.WriteLine("EXP: "+E);
}
}
Output:
EXP: 7.38905609893065
Press any key to continue . . .
Program:
The source code to demonstrate the use of Exp() method of Math class is given below. The given program is compiled and executed successfully.
Output: