Returning Function or Returning Method
Returing method is the direct opposite of void method. Returning method will return a value. In order to declare returning method , We need to use a datatype before method name and inside that method we need to use return keyword and we need to return a value. In order to understand this clearly let us study this with a code example.
CODE
EG 1 . Creating a returning method and trying to store inside variable, printing out in console and doing arithmetic Calculation.
static void Main() {
    //storing returning method inside a variable
    double result = DegreeToRadian(30);
    Console.WriteLine(result);
    //printing out returning method in console
    Console.WriteLine(DegreeToRadian(30));
    //Arithmetic Calculation in returning method.
    Console.WriteLine(DegreeToRadian(30)*2/180);
    //(Ultimate goal)Assume we created DegreeToRadian method to calculate Math.sin(30 degree)
    Console.WriteLine(Math.Sin(DegreeToRadian(30)));
}
static double DegreeToRadian(double degree) {
    return degree * Math.PI / 180;
}
(Click Here, For more exercises)