fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b,c;
  6. cin>>a>>b;
  7. c = a + b;
  8. cout<<a<<" + "<<b<<"= "<<c<<endl;
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5516KB
stdin
10
20
stdout
10 + 20= 30