My cin.get() is not working and hence does not stop the code
I’m a beginner and learing C++. When I try to run the exe file of this code it closes as soon as I press ‘enter’ after entering the second number. How do I pause my code to see the result? I also tried system("pause"), it worked but I read that it only works on windows… Read More My cin.get() is not working and hence does not stop the code