C# program to demonstrate the use of Acos() method of Math class
using System;
class Sample
{
//Entry point of Program
static public void Main()
{
double Cosine = 0.0;
Cosine = Math.Acos(0.7);
System.Console.WriteLine("Result is: "+Cosine);
}
}
Result is: 0.795398830184144
Press any key to continue . . .
Table of Contents