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
Before you return add system("PAUSE"); and this should fix your problem.