Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int AddNumbers(int x, int y)
  6. {
  7.     return x+y;
  8. }
  9.  
  10. int main()
  11. {
  12.     int JonVar1 = 100;
  13.     int JonVar2 = 50;
  14.     int result = AddNumbers(JonVar1, JonVar2);
  15.     cout << "Result: " << result << endl;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement