Math.Sqrt
using System; class MainClass { public static void Main() { double s1 = 3.0; double s2 = 4.0; double hypot; hypot = Math.Sqrt(s1*s1 + s2*s2); Console.WriteLine("Hypotenuse is " + hypot); } }