Prog#054: Count of postive or negative or zero nos - until -1000 is given

/* 
Program#54
Count of postive or negative or zero nos - until -1000 is given.
*/

#include <stdio.h>
main(){
int n=0,p=0,ne=0,z=0;
scanf("%d ",&n); 
while(n!=-1000){
if(n>0)
p=p+1;
else
if(n<0)
ne=ne+1;
else
z=z+1;
scanf("%d ",&n); 
}
printf("\n Positive : %d \n Negative : %d \n Zero : %d",p,ne,z);
}