how to calcilate square root in c# code example Example: c# square root function int num = 4; Math.Sqrt(num);