1. Another HW help!

Code:
```printf("Enter an integer:\n");
scanf("%d",&n);
if(n>0)pluscounteven+2;
else if (n>0)pluscountodd++;
else if (n<0)minuscounteven=-2;
else if (n<0)minuscountodd=-2;
else zerocount++;```
This one seems easy, but I can't find a way to it. I'm scanning "m", which will tell me to type an integer "m" times, you put in the integers, and the end result should give me

Code:
```Among "m" scanned integers there are:
0 positive even and 0 positive odd integers,
0 negative even and 0 negative odd integers, and
0 zero integers.```
, but with positive integers and not all zeros. I am able to do it if it's just positive or negative, but I don't know how to separate the odds and evens. I was hope that I could somehow start the odds at 1/-1, but I don't know if that's possible. Someone help! Much appreciated!

2. Code:
```printf("Enter an integer:\n");
scanf(" %d",&n);
if(n>0){
pluscounteven+=2;
pluscountodd++;
}
else if (n<0){
minuscounteven-=2;
minuscountodd-=2;
}
else{
zerocount++;
}```
Did you mean that?
~Sven

3. u might need a while loop to get the integer from the user m times
Code:
```while(count < m)
{
process n
.
.
count++;
}```
ssharish2005

4. Originally Posted by 00Sven
Code:
```printf("Enter an integer:\n");
scanf(" %d",&n);
if(n>0){
pluscounteven+=2;
pluscountodd++;
}
else if (n<0){
minuscounteven-=2;
minuscountodd-=2;
}
else{
zerocount++;
}```
Did you mean that?
~Sven
That would increase the number of even numbers I have by a factor of 2. I meant if I put 5 integers (1,2,3,4,5), then I should get an output.

Code:
```Among 5 scanned integers there are:
2 positive even and 3 positive odd integers,
0 negative even and 0 negative odd integers, and
0 zero integers.```
I think I just figured out it should be something inside. if(n>0 && n == ??????)

That's the part I don't get now. How would I separate odds from evens?

5. > How would I separate odds from evens?
Basic math text book perhaps?
http://faq.cprogramming.com/cgi-bin/...&id=1043284385