title: Ask user for 5 numbers then add together for total using a loop
body: <pre><code>using System;
   class SumDoubles
   {
      static void Main()
      {   
          //Declare variables
          double DblSumTotal = 0;
          double LIMIT = 0;
  
  
          //Ask user to input 5 numbers to be added
          Console.Clear();
          Console.WriteLine("Enter 5 numbers to be added together.");
          do 
          {
              DblSumTotal = DblSumTotal + (Convert.ToDouble(Console.ReadLine()));
              LIMIT = LIMIT + 1;
          } while (LIMIT &lt; 6);
  
          //Output total
          Console.WriteLine("The total sum of the 5 numbers is " + DblSumTotal);
          Console.ReadLine();
      }   
  }
  </code></pre>
  
  <p>This is the code I have so far. It will compile but I receive an error when trying to run it:</p>
  
  <blockquote>
    <p>Unhandled Exception: Input string was not in a correct format. at System.Number.ParseDouble(String value, NumberStyles options, NumberFormat Info numfmt) at System.Double.Parse(String s, IFormatProvider provider) at SumDoubles.Main()"</p>
  </blockquote>
  
  <p>I am very new to coding and I can't seem to wrap my head around loops. Please help!</p>