square root of any number maths code example Example: The Math.Sqrt(x) method returns the square root of x: Math.Sqrt(64);