Advertisement
Da_Gamer

Function Example 1

Dec 17th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  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 << addTwoNumbers(3, 5);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement