title: Is there a way to call a variable from a different method?
body: <p>I am trying to build a BMI calculator and I the only thing that can be in the main function is method calls. Whenever i run the following code, the calculation answer does not print. How can i fix that?</p>
  
  <pre><code>public static Double EnterWeight(object sender, EventArgs e)
  {
      Console.Write("Enter Your Wieght In Pounds: ");
      double Rweight = Convert.ToDouble(Console.ReadLine());
      return Rweight;
  }
  
  public static double EnterHeight(object sender, EventArgs e)
  {
      Console.Write("Enter Your Height in Inches: ");
      double Rheight = Convert.ToDouble(Console.ReadLine());
      return Rheight;
  }
  
  public static double Calculation(double height, double weight)
  {
      double BMI = (weight / Math.Pow(height, 2) * 703);
      return BMI;
  }
  
  static void Main(string[] args)
  {
      string name = EnterName();
      //Console.WriteLine(name);
      double weight = EnterWeight();
      //Console.WriteLine(weight);
      double height = EnterHeight(object sender, EventArgs e);
      //Console.WriteLine(height);
      double BMI = Calculation(height, weight);
      Console.WriteLine("Your BMI is: ", BMI);
  }
  </code></pre>
  
  <p>There are some extra lines in the mine that I used for testing.</p>
  
  <p>The result is just a blank</p>