5
answers
0
watching
265
views
30 Jan 2018

14. What value is returned by the following method if the input array is {2,3,4, 1, 2, 1} public static int mystery (int[] array) { int foo = 1; for (int i = 0; i < array.length; i++) { foo = foo * array[i]; return foo; (A) 48 (B) 2 (C) 24 (D) 16 (E) 4

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Beverley Smith
Beverley SmithLv2
2 Feb 2018
Already have an account? Log in
Start filling in the gaps now
Log in