In my CS class, I was asked to write a java program to replace each element of the array with every other element's product in a given array of integers. I'm so confused about what it means?
For example, now I have the input array1 = { 10, 22, 36, 48, 50, 69, 78}, and I want the output array with a product of every other element:[5040, 2520, 1680, 1260, 1008, 840, 720]. It just doesn't make sense to me.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here