title: Method that returns greater value of two numbers
body: <p>So I have this code </p>
  
  <pre><code>  static void Main(string[] args)
      {
          Console.Write("First Number = ");
          int first = int.Parse(Console.ReadLine());
  
          Console.Write("Second Number = ");
          int second = int.Parse(Console.ReadLine());
  
          Console.WriteLine("Greatest of two: " + GetMax(first, second));
      }
  
      public static int GetMax(int first, int second)
      {
          if (first &gt; second)
          {
              return first;
          }
  
          else if (first &lt; second)
          {
              return second;
          }
          else
          {
              // ??????
          }
      }
  </code></pre>
  
  <p>is there a way to make GetMax return a string with error message or something when first == second.</p>