Advertisement
Da_Gamer

Function Example 2

Dec 17th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <stdlib.h>
  3.  
  4. using namespace std;
  5.  
  6. int addTwoNumbers(int a, int b)
  7. {
  8.     int result = a + b;
  9.     return result;
  10. }
  11.  
  12. int main ()
  13. {
  14.     cout << result;
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement