That is the default behaviour of Console.Read(). From an answer on Difference between Console.Read() and Console.ReadLine()?
Console.Read() basically reads a character so if you are on a console and you press a key then the console will close. [...]
You should use Console.ReadLine();
instead.
Console.WriteLine("Enter first number: ");
double num1 = double.Parse(Console.ReadLine());
Console.WriteLine("Enter second number: ");
double num2 = double.Parse(Console.ReadLine());