Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include<iostream>
  2. #include<iomanip>
  3. using namespace std;
  4.  
  5. int someFunction (int a, int b)
  6. {
  7. int r;
  8. r = a + b;
  9. return r;
  10. }
  11.  
  12. int main()
  13. {
  14. int DAVE[3];
  15. DAVE[0] = someFunction(5,4);
  16. DAVE[1] = someFunction(5,3);
  17. DAVE[2] = someFunction(1,1);
  18. cout << DAVE[0] << endl;
  19. cout << DAVE[1] << endl;
  20. cout << DAVE[2] << endl;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement