fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int add(int n, int b){ return n+b;}
  5.  
  6. int main()
  7. {
  8. int JOHN, jane; // your code goes here
  9. cin >> JOHN;
  10. cin >> jane;
  11. int amazinganswer = JOHN+jane;
  12. //cout << a+b << endl;
  13. cout << amazinganswer << endl;
  14. cout << add(JOHN, jane);
  15. return 0;
  16. }
Success #stdin #stdout 0s 15232KB
stdin
4 21
stdout
25
25