title: Writing out input numbers to console application,C#
body: <p>I have a program that asks for a number (int x). then, the user should input x numbers to the console. And the console should add all the numbers together and write out the result of all the input numbers. So I've done this:</p>
  
  <pre><code>Console.WriteLine("Enter an number: ");
  int x = int.Parse(Console.ReadLine());
  
  for (int i = 0; i &lt; x; i++ )
  {
      Console.WriteLine("Ange tal {0}: ",i );
      double numbers= double.Parse(Console.ReadLine());
  }
  
  Console.WriteLine("Sum of the entered numbers are: {0} ",x);
  Console.ReadLine();
  </code></pre>
  
  <p>But the the result only gives me the last entered number. What am I doing wrong?</p>