fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. int y;
  7. cout << "Enter two numbers: " << endl;
  8. cin >> x >> y;
  9. cout << "The sum of two numbers is " << x + y << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5320KB
stdin
10 5
stdout
Enter two numbers:  
The sum of two numbers is 15