I have below program written in c++.
#include<iostream.h>
void main() {
int age = 0;
cout<<"Please enter age\n";
cin>>age;
cout<<"Your age is - ";
cout<<age;
}
After entering the age, it closes the screen. I can't see the output. I could it by pressing the Alt + F5 only.
Is it possible to check the output right after entering the age by pressing the enter key?