I have a program that calculates the factorial of multiple numbers. These nubers are passed as parameters in cmd as such :
factorial.exe 3 4 5
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:
factorial.exe 3 4 5 wait_time1
or
factorial.exe 3 4 5 1000
To read the numbers I use this args parser :
static string the_time;
public static void Main(string[] args)
{
foreach (string s in args)
{
extra = int.Parse(s);
Calculate(extra);
}
}
How can I separate the arguments? Thanks in advance.