Functions and Arrays | Sololearn: Learn to code for FREE!


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

3/26/2021 9:41:35 PM


2 Answers

New Answer


Show your attempt, here is "example" if statement that you can use: if(!x%3 || !x&1){ // print x }


Dannyfame, I can see from your profile that you are not even taking the C++ course and have only completed 4% of the C course. SoloLearn is neither a homework completion service nor a code writing service. Please type your code into the code playground and provide a link to it here. Explain where you are having difficulty or what errors you are getting.