Functions and Arrays | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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
1 Answer
+ 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