I just modified your code a bit . I added a getchar() and system(“PAUSE”). The system pauses to print output. Try using other compilers or IDE to avoid these troubles
#include
#include<stdlib.h>
using namespace std;
int main()
{
int value1, value2, sum ;
cout<<"enter value1: " ;
cin>>value1 ;
cout<<"enter value2: " ;
cin>>value2 ;
sum =value1+value2 ;
cout<<"the sum is: " <<sum<<endl<<endl ;
getchar();