The applications you have open, and some background processes.
Answer:
int count =0;
for(int i=0;i<10;i++)
{
if(myArray[i]>=0)
{
count++;
}
}
cout<<"Number of positive integers is "<<count<<endl;
Explanation:
The above written loop is for counting positive integers in the myArray[].
For counting we have taken a count integer initialized with 0.On iterating over the array if the element is greater than or equal to 0 we consider it as positive and increasing the count.At the end printing the count.
The odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is zero (0).
<h3>What are even numbers and odd numbers?</h3>
The even numbers can be found in a list because they are divisible by two and the remainder of this equation is always zero (0).
Conversely, odd numbers are those that cannot be divided exactly into exact entire numbers (e.g., 3, 5, etc).
The odd numbers in a list can be calculated by the equation ON (odd numbers): n/2 × [f + g], where 'f' is the first number and 'g' is the last number.
In conclusion, the odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is 0.
Learn more about odd numbers here:
brainly.com/question/2263958
#SPJ1