Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<iomanip>
- using namespace std;
- int someFunction (int a, int b)
- {
- int r;
- r = a + b;
- return r;
- }
- int main()
- {
- int DAVE[3];
- DAVE[0] = someFunction(5,4);
- DAVE[1] = someFunction(5,3);
- DAVE[2] = someFunction(1,1);
- cout << DAVE[0] << endl;
- cout << DAVE[1] << endl;
- cout << DAVE[2] << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement