fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8. int num1, num2;
  9. cout << "Enter first number: ";
  10. cin >> num1;
  11.  
  12. cout << "Enter second number: ";
  13. cin >> num2;
  14.  
  15. cout << num1 + num2;
  16. return 0;
  17. }
Success #stdin #stdout 0s 5312KB
stdin
30
stdout
Enter first number: Enter second number: 32795