fork download
  1. #include <iostream>
  2. using namespace std;
  3. https://i...content-available-to-author-only...e.com/N3zUME#
  4. int main() {
  5. int a,b;
  6. while(cin>>a>>b){
  7. cout<<"Sum = a + b = "<<a<<" + "<<b<<" = "<<a+b<<endl;
  8. }
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5316KB
stdin
10 20
30 50
stdout
Sum = a + b = 10 + 20 = 30
Sum = a + b = 30 + 50 = 80