C# Program to Demonstrate the Use of Acos() Method of Math Class

You are currently viewing C# Program to Demonstrate the Use of Acos() Method of Math Class

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 . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply