fork(1) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. std::cout << "Enter two numbers:" << std::endl;
  6.  
  7. int v1 = 0;
  8. int v2 = 0;
  9. std::cin >> v1 >> v2;
  10. std::cout <<"The sum of "<< v1 << " and " << v2 <<" is " << v1+v2 <<std::endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 3416KB
stdin
Standard input is empty
stdout
Enter two numbers:
The sum of 0 and 0 is 0