while(n!=0)
{
//if the number is less than zero, count it
if(n<0)
{
numOfNeg++;
}
//if the number is greater than zero, count it
if(n>0)
{