If I use Math as a class name return should be System.Math.Sqrt(num); in order to program to give output.
If I am not using Math as a class name return can be Math.Sqrt(num); in order to program to give output.Please explain
using
public
{
Console.Write("Number = ");
sNum = Console.ReadLine();
number = Convert.ToDouble(sNum);
sqrt = SqrtRoot(number);
Console.WriteLine("Square Root of the number = {0}", sqrt);
}
/*
Number = 81
Square Root of the number = 9
Press any key to continue
*/