Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int addUp(int* array, int arraySize, int k)
- {
- for(int i = 0; i < arraySize; i++)
- {
- for(int j = i + 1; j < arraySize; j++)
- {
- if(array[i] + array[j] == k) return 1;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement