fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b,sum;
  6. cout<<"first number="<<endl;
  7. cin>>a;
  8. cout<<"second number="<<endl;
  9. cin>>b;
  10. sum=a+b;
  11. cout<<"Sum="<<sum<<endl;
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5328KB
stdin
10
10
stdout
first number=
second number=
Sum=20