title: C# separating args parameters
body: <p>I have a program that calculates the factorial of multiple numbers. These nubers are passed as parameters in cmd as such :</p>
  
  <pre><code>factorial.exe 3 4 5
  </code></pre>
  
  <p>This will calculate the factorials of 3, 4 and 5 respectively.
  An earlier version of the program had a percentage that showed the fullness of the stack. I want to bring that back now, but I to also pass the wait time as a parameter in cmd as such:</p>
  
  <pre><code>factorial.exe 3 4 5 wait_time1
  </code></pre>
  
  <p>or </p>
  
  <pre><code>factorial.exe 3 4 5 1000
  </code></pre>
  
  <p>To read the numbers I use this args parser : </p>
  
  <pre><code>static string the_time;
      public static void Main(string[] args)
      {
  
          foreach (string s in args)
          {
  
              extra = int.Parse(s);
  
              Calculate(extra);
          }
       }
  </code></pre>
  
  <p>How can I separate the arguments?
  Thanks in advance.</p>