title: Printing output by inside method
body: <p>Simply want to ask from below code that how can we print <strong>max value</strong> from writing inside the <strong>FindMax Method</strong> instead of executing print from <strong>main method</strong> after calling <strong>Find Max</strong> method ?</p>
  
  <pre><code>using System;
  
  namespace CalculatorApplication
  
  {
     class NumberManipulator
     {
        public int FindMax(int num1, int.  num2)
        {
           /* local variable declaration */
          int result;
  
          if (num1 &gt; num2)
          result = num1;
          else
          result  return result;
        }
          static void Main(string[] args)
        {
          /* local variable definition */
          int a = 100;
          int b = 200;
          int ret;
          NumberManipulator n = new. NumberManipulator();
  
          //calling the FindMax method
          ret = n.FindMax(a, b);
          Console.WriteLine("Max value is :    {0}", ret );
          Console.ReadLine();
        }
     }
  }
  </code></pre>