ok my problem is when i write all the code and then press execute the program work great but when i enter the number to make the program works it close automatically what i coud do to fix this? here is my code:
(sorry for my english)
"it was taken of this page but just to learn"
#include <iostream.h>
int main()
{
int age;
cout<<"Please input your age: ";
cin>>age;
if(age<100)
{
cout<<"You are pretty young!";
}
else if(age==100)
{
cout<<"You are old";
}
else
{
cout<<"You are really old";
}
return 0;
}