fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main () {
  5.  
  6. int a,b;
  7. std::cout <<"my calculator \n #### " <<std::endl;
  8. std::cout << "a = " ;
  9. std::cin >> a ;
  10. std::cout << "b = " ;
  11. std::cin >> b ;
  12. int c = a+b ;
  13. std::cout << a << " + " << b << " = " << c << std::endl;
  14. return 0;
  15.  
  16.  
  17. }
  18.  
Success #stdin #stdout 0s 5320KB
stdin
hello 
stdout
my calculator 
 #### 
a = b = 0 + 21987 = 21987