Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

math in C#

class Calc {
  
    
    static void Main()
    {
  		double squrt_value = Math.Sqrt(64);
        
        Console.WriteLine("Sqrt value = " + squrt_value) 
        
        double e = Math.E;
  
    
        Console.WriteLine("Math.E = " + e);
  
    
        double pi_value = Math.PI;
  
    
        Console.WriteLine("Math.PI = " + pi_value);
        
        double min_value = Math.Min(5, 10);
        
        Console.WriteLine("Min value =" + min_value);
        
        
        
        
    }
}
 
PREVIOUS NEXT
Tagged: #math
ADD COMMENT
Topic
Name
9+4 =