Hi there,

I have only just started using C# and can't understand why when I open this console program it automatically closes.

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            //User entered variables
            Console.WriteLine("Enter number A");
            int a = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Enter number B");
            int b = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Enter number C");
            int c = Convert.ToInt32(Console.ReadLine());

            //Calculation
            int d = a * b;

            //Result
            Console.WriteLine(a + "x" + b + "x" + c + "=" + d);
            Console.WriteLine("Press enter to quit");
            Console.ReadLine();

        }
    }
}
No errors were reported by Visual 2010 Express.

Thanks.