Using args facility
<pre><code>using System;

namespace WS_7_A
{
    class Calculator
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("~~~~~~ Acme Calculator-o-Matic ~~~~~~");
            Console.WriteLine("Enter two integers to add...");
            double number1 = Convert.ToDouble(args[0]);
            double number2 = Convert.ToDouble(args[1]);
            Console.WriteLine("Answer: {0}", Calculator.add(number1, number2));
            Console.ReadKey(true);
        }


        private static int add(int a, int b)
        {
            return (a + b);
        }

        private static double add ( double a , double b)
        {
            return ( a + b);
        }
    }
}
</code></pre>

<p>The error I receive is <code>System.IndexOutOfRangeException: Index was outside the bounds of the array.</code>  What am I doing wrong?</p>
