fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int h(){
  5. int a,b,s;
  6. cout << "Введите два числа: ";
  7. cin >> a >> b;
  8. s=a+b;
  9. cout<<a<<"+"<<b<<"="<<s<<endl;
  10. return 0;
  11. }
  12.  
  13. int main(){
  14. std::cout << h() << endl;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3100KB
stdin
Standard input is empty
stdout
Введите два числа: 134520244+134515266=269035510
0