Functions and Arrays | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
- 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
1 ответ
+ 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