Tuesday, July 28, 2009

In c# which function is used to find the square root?

Math.Sqrt(x)





Where x is the number.





Example:


using System.Math;


double myDouble = Sqrt(myOtherDouble);

In c# which function is used to find the square root?
Syntax:


sqrt(number);





Header file(to be included):


math.h





Example:


sqrt(10);


result is 100





Enjoy programming, chum!!
Reply:In C++ you can use sqrt(x) - function where 'x' is the no: whose square root is to be found. The function is in the library file %26lt;math.h%26gt;

bottle palm

No comments:

Post a Comment