I am a beginner in C++ and I was trying to write a program that finds the average of two numbers, but when I run the program, the window disappears without allowing me to se
Put a breakpoint at your return statement. It won't stop on an uncaught exception but that can be fixed with a try/catch block at the outermost part of main.