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