fork download
  1.  
  2. #include <iostream>
  3. using namespace std;
  4. int sum(int a , int b){
  5. return a+b;
  6.  
  7. }
  8. int main(){
  9. int a,b;
  10. cout<<"enter two numbers:";
  11. cin>>a>>b;
  12. cout<<"sum="<<sum(a,b);
  13.  
  14.  
  15.  
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
enter two numbers:sum=-479018082