fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int x;
  6. int y;
  7. cout << "give a number" << endl;
  8. cin >> x;
  9. cout << "give another number" << endl;
  10. cin >> y;
  11. cout << x+y;
  12.  
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 5312KB
stdin
1
3
stdout
give a number
give another number
4