Methods improvements I just recently learned how to write Methods in C#. Here is one experiment I made. It calculates addition, subtraction, division, multiplication, and the square root of a number. fill free to give me suggestions on how I can improve the code. I also do know I need to set up a system that prevents the user from typing wrong answers. I just don't have enough experience to do it yet (I tried).
static void Main(string[] args)
    {
       string userAnswer;

       Console.WriteLine(&quot;Calculater or Square Root Calculater?&quot;);
       Console.WriteLine(&quot;-Please respond with Calculater or Square&quot;);
       userAnswer = Console.ReadLine().ToUpper();
       Console.Clear();

       switch(userAnswer)
       {
           case &quot;CALCULATER&quot;:
            Calculater();
           break;
           case &quot;SQUARE&quot;:
            SquareRootCalculater();
           break;
           default:
           Console.WriteLine(&quot;Invalid Input&quot;);
           break;
       }
        
        Console.ReadKey();
    }

     static void SquareRootCalculater()
    {
        int squareNumber;

        Console.WriteLine(&quot;Input Number:&quot;);
        squareNumber = Convert.ToInt32(Console.ReadLine());
        Console.Clear();

        Console.WriteLine($&quot;The Square Root of {squareNumber} is&quot;);
        Console.WriteLine(Math.Sqrt(squareNumber));
    }

    static void Calculater()
    {
        int firstNumber;
        string sign;
        int secondNumber;
        int answer = 0;


        Console.WriteLine(&quot;Input Number:&quot;);
        firstNumber = Convert.ToInt32(Console.ReadLine());
        Console.Clear();

        Console.WriteLine(&quot;Input Operation:&quot;);
        sign = Console.ReadLine();
        Console.Clear();

        Console.WriteLine(&quot;Input Second Number:&quot;);
        secondNumber = Convert.ToInt32(Console.ReadLine());
        Console.Clear();

        switch (sign)
        {
            case &quot;+&quot;:
                answer = firstNumber + secondNumber;
            break;
            case &quot;-&quot;:
                answer = firstNumber - secondNumber;
            break;
            case &quot;*&quot;:
                answer = firstNumber * secondNumber;
            break;
            case &quot;/&quot;:
                answer = firstNumber / secondNumber;
            break;
            default:
                Console.WriteLine(&quot;Invalid Input&quot;);
            break;
        }
        Console.WriteLine($&quot;The answer of {firstNumber} {sign} {secondNumber} is&quot;);
        Console.WriteLine(answer);

    }
You should aim to declare variables at initialization when possible. Pre-initialized variables are suspicious and make me wonder whether they are being optionally assigned or edited elsewhere.
       // string userAnswer;

       Console.WriteLine(&quot;Calculater or Square Root Calculater?&quot;);
       Console.WriteLine(&quot;-Please respond with Calculater or Square&quot;);
       string userAnswer = Console.ReadLine().ToUpper();
       Console.Clear();