- 3

Functions and Arrays

write a function that takes in an array and returns the sum of all the numbers divisible by 2 and 3 in the array Please I need answers

26th Mar 2021, 9:41 PM
Dannyfame
2 Antworten
+ 3
Show your attempt, here is "example" if statement that you can use: if(!x%3 || !x&1){ // print x }
26th Mar 2021, 9:45 PM
Michal Doruch