Question: 5) Consider the array called myArray declared below that contains positive and negative integers. Write a loop statement to count and display the number

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 negative integers in the array. That is, your loop should display the message "Number of negative integers is 5". (4 points) int myArray[]={-1,3,-9,9,33,-4,-5,100,4,-23); Note: The loop should always work without modification even if the values in the array are changed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
