I’m a novice and was challenged to create an array of integers, then build a function that multiplies each one by 2, then return the array back to the main method.
I could use some pointers! This is a little above my head. I sent my array to a new function but I’m not really positive on if I did that correctly. I used a foreach loop to cycle through each value in the array but can’t seem to figure out how to take that and return it in an array out of the function.
Any pointers are much appreciated!