Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int x, y;
  8.     cout << "Enter two values and I will add and subtract" << endl;
  9.     cin >> x >> y;
  10.  
  11.     sumDifference(x, y)
  12.     return 0;
  13. }
  14. void sumDifference(int a, int b)
  15. {
  16.     return a + b;
  17.     return a - b;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement