C# program to demonstrate the use of math library methods
Program.cs
Output
kodingwindow@kw:~/csharp$ dotnet run ——————————————————————————————————————————— Program to use the math library methods ——————————————————————————————————————————— Value of PI | 3.141592653589793 Value of e | 2.718281828459045 Max of (-4,3) | 3 Min of (-4,3) | -4 Abs(-2.3) | 2.3 Floor(2.3) | 2 Ceiling(2.3) | 3 Round(2.3) | 2 e^0 | 1 Pow(0,0) | 1 Log(2)Natural | 0.6931471805599453 Log10(2) | 0.3010299956639812 Sqrt(25) | 5 Cbrt(90) | 3 Sin(90)radian | 0.8939966636005579 Cos(90) | -0.4480736161291701 Tan(90) | -1.995200412208242 ——————————————————————————————————————————— kodingwindow@kw:~/csharp$
What Next?
C# program for addition of two numbers using a static method
C# program for addition of two numbers using a method
C# Inheritance
Advertisement