n numbers are entered from the keyboard into an array. Write a program to find out many of them are positive, how many are negative, how many are even and how many odd.

Sample Input #Supposed to be)

Enter 10 numbers : 10 20 23 -6 52 34 22 66 -22 -1

Sample Output #1:

Positive Numbers : 7

Negative Numbers : 3

Odd Numbers : 2

Even Numbers : 8

Code:

#include <stdio.h>
#define MAX_INP 10
int main ()
{
int no[MAX_INP]={0},i=0,j=1,pos=0,neg=0,odd=0,even=0;
for (i =0; i<10; i++){
printf("Enter no %d: ",j);
scanf("%d",&no[i]);
j++;
}
for (i=0; i<10; i++){
if(no[i] > 0){
pos++;
}
if(no[i] < 0){
neg++;
}
if((no[i]/2) == 1 || no[i]/2 == -1){
odd++;
}
if((no[i]/2) == 0){
even++;
}
}
printf("\n\nPositive numbers : %d\nNegative Numbers : %d\nOdd Numbers : %d\nEven Numbers : %d",pos,neg,odd,even);
getch ();
return 0;
}

Out put is not shown correctly in case of odd and even while =ve and -ve numbers are showing properly. Please Help!!!!!