Is the problem that you want to run the loop 10 times? You’ve got a count
variable that you are not otherwise using. The loop should look something like:
int count=0;
while (count != 10) {
...
++count;
}
Conventionally a for
loop is used for this (if allowed):
for (int count=0; count<10; ++count) {
...
}
3
solved need to determine the positive, negative and zero numbers in program and add all the positive and negative numbers separately [closed]