Unreachable code detected
Because of the last line .The last line of the function never execute due to the return line written above the
Console.WriteLine(number);
Remove the last line or write the line above the return statement.
and also consider answer 1 Please write something(call the function) in the main function.