fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.  
  7. int x, y, sum;
  8.  
  9. cout<<"First number: "<< endl;
  10. cin>> x;
  11.  
  12. cout<<"Second number: "<< endl;
  13. cin>> y;
  14.  
  15. sum = x+y;
  16.  
  17. cout<<"The sum is: "<< sum << endl;
  18.  
  19. return 0;
  20.  
  21.  
  22. }
Success #stdin #stdout 0.01s 5288KB
stdin
45
stdout
First number: 
Second number: 
The sum is: 32812