fork download
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. int a, b, c;
  8. cout << "enter 2 numbers\n";
  9. cin >> a >> b;
  10. c=a+b;
  11. cout << "subtracted val is " << c;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5284KB
stdin
10 7
stdout
enter 2 numbers
subtracted val is 17