How can i get this code to show once and it counting all the positive?
When i enter a 10 numbers. it show
The positive are....
The positive are....
The positive are....
The positive are...
The positive are...
...
until 10
can someone show me how to make it show only once and keeping counting the number?
if (findNum[i] > 0)
{
cout <<"The positive are " << findNum [i] << endl;
}
else
{
cout <<"The Negative number are " << findNum[i] << endl;
}