title: While a "Q" char is not entered ask for a number then calculate all the inputs
body: <p>I'm new to C# and I got an assignment to finish: &quot;A method with while, to write numbers until you write F. The result is the sum of the numbers.&quot;</p>
  <p>Is that weird?, can you show me a solution to this.</p>
  <p>Here is what I tried:</p>
  <pre><code>using System;
  
  namespace DetyratSharp
  {
      internal class Program
      {
          public static void Main(string[] args)
          {
              string Number;
              double Shuma;
              
              while (Number != &quot;F&quot;)
              {
                  Numri = Convert.ToDouble(Console.ReadLine());
                  Shuma = Shuma + Numri;
              }
              
              Console.WriteLine(&quot;The total: &quot; + Shuma);
          }
      }
  }
  </code></pre>