+ 1

Urgent please need help

public double A(int[] data){ return 0; } } my question is how to input array index even number like {2,4,6,8,10,....} in this code with parameter array element n which 100>n>1 btw this is oop question so its dont have main yet

12th Sep 2017, 7:22 PM
Muhammad Nazri
Muhammad Nazri - avatar
1 Réponse
0
run a loop to get even numbers something like this for(int i = 0;i<100;i=i+2) { } now use i as index.
13th Sep 2017, 9:52 AM
shobhit
shobhit - avatar