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
Include this header:
#include
And add a call to getchar() before you return:
getchar()
return
cout << answer<