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.
Answer:
IN PYTHON ::
x=int(input('Enter length:'))
y=int(input('Enter width:'))
print('Area of the rectangle is', x*y,'squared units')
I hope it will be useful.
Answer:
c to help build the internets infrastrucuter
Explanation:
Answer:
Statement to assign 32 to variable cheeses.
cheeses=32;
Explanation:
To assign any value to a variable in any programming language, we use "="operator.First declare a variable "cheeses"of type "int" in this case.Then assign 32 to variable "cheeses" with the help of "=" operator.After assigning 32 , variable will store 32 in it.
Implementation in c++.
#include <bits/stdc++.h>
using namespace std;
int main()
{
int cheeses;
cheeses=32;
return 0;
}
Participants in open source community projects get experience and make connections with other professionals that can be valuable resources during a job hunt.