C# MATH

 What is C# MATH ?

              The C# math class has many methods that allows you to perform mathematical tasks on numbers .

MATH.MAX (X,Y)

            The Math.max (X , Y) method can be used to find the highest value of X and Y .

TRY IT YOURSELF 







MATH.MIN (X , Y)

         The Math.min (X , Y ) method can be used to find the lowest value of X and Y.


TRY IT YOURSELF 



             


MATH.SQRT(X) 

       The Math.Sqrt (X) method returns the square root of X.



TRY IT YOURSELF 



MATH.ABS (X) 

      The Math .Abs (X ) method returns the absolute (positive) value of X . 



TRY IT YOURSELF 


        
            



MATH.ROUND ( ) 

            Math . Round ( )  rounds a number to the nearest whole number .

TRY IT  YOURSELF 





    

       

Post a Comment

Previous Post Next Post

نموذج الاتصال