title: How do I read consecutive lines of input from the console to use for an Add() method?
body: <p>The following is my code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace JeffOrrisSimpleCalculator._1
  {
      class Program
      {
          static void Main(string[] args)
          {
  
              Console.WriteLine("Simple Calculator");
              Console.WriteLine("\t1&gt; Add");
              Console.WriteLine("\t2&gt; Subtract");
              Console.WriteLine("\t3&gt; Multiply");
              Console.WriteLine("\t4&gt; Divide");
              Console.WriteLine("\t5&gt; Quit");
              Console.WriteLine();
              Console.Write("Enter Selection:  ");
  
              string myValue = ValidateData();
              Console.WriteLine(myValue);
  
              Console.Write("Enter number one:  ");
              Console.ReadLine();
              Console.Write("Enter number two:  ");
              Console.ReadLine();
  
              string mySum = Add();
              Console.WriteLine(mySum);
  
              Console.Read();
          }//end main
  
          private static string ValidateData()
          {
  
  
              string temp = Console.ReadLine();
              if ((temp == "1") || (temp == "2") || (temp == "3") || (temp == "4") ||                (temp == "5"))
              {
                  //string Response = "Thank You";
                  //return Response;
  
                  return null;
              }
              else
              {
                  string Response = "Please enter a valid selection";
                  return Response;
  
              }
          }//end ValidateData
  
  
  
          private static string Add()
          {
              string numberOne = Console.ReadLine();
              double temp1 = Convert.ToDouble(numberOne);
  
              string numberTwo = Console.ReadLine();
              double temp2 = Convert.ToDouble(numberTwo);
  
              double total = temp1 + number2;
              string myTotal = Convert.ToString(total);
              return myTotal;
          }
  
  
          }//end class
          }//end namespace
  </code></pre>
  
  <p>*Im just concerned with the add method.  Im prompting the user to enter 2 numbers that I need to add using the add method.  I believe im over-thinking this.  I am used to windows forms and not console apps.  I can't figure out how to consecutively save these input variable from Console.ReadLine.</p>