5) Consider the array called myArray declared below that contains positive and negative integers. Write a loop statement to count and display the number of integers in the array that are divisible by 3. That is, your loop should display the message “Number of integers divisible by 3 is 2” (4 points) int myArray[]s( 1,3,9,9 1,40,4,5, 100.20,-23); Note: The loop should always work without modification even if the values in the array are changed https://media.cheggcdn.com/media%2Fe4e%2Fe4e62247-b5c5-40ff-beb0-90d65a054700%2Fimage

ANSWER 1:
SOURCE CODE:
#include
using namespace std;
int main()
{
int size,counter=0;
int myArray[]={1,3,9,91,40,4,-5,100,20,-23};
size=sizeof(myArray)/sizeof(myArray[0]);
cout
 
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"