Contact: aviboots(AT)netvision.net.il
41,457 questions
54,004 answers
573 users
using System; public class Program { public static void Main(string[] args) { int a = 25; Console.WriteLine(Math.Sqrt(a)); int b = 81; Console.WriteLine(Math.Pow(b, 0.5)); int c = 85; Console.WriteLine(Math.Sqrt(c)); } } /* run: 5 9 9.21954445729289 */
using System; public class Program { public static void Main(string[] args) { double value = 121.0; Console.WriteLine("The square root of {0:F2} is {1:F2}", value, Math.Sqrt(value)); } } /* run: The square root of 121.00 is 11.00 */
using System; public class Program { public static void Main(string[] args) { double value = 121.0; Console.WriteLine("The square root of {0:F2} is {1:F2}",value,Math.Pow(value, 0.5)); } } /* run: The square root of 121.00 is 11.00 */