#write a program that reads a sequence of non-zero ints #first zero TERMINATES the input #the program counts the number of positives ints and the number #of negative ints among the input num=int(input("enter non zero int, first zero terminates input ")) count_neg=0 count_pos=0 while(num!=0): if(num>0): count_pos=count_pos+1 elif(num<0): count_neg=count_neg+1 num=int(input("enter non zero int, first zero terminates input ")) if(count_pos>0): print("there are",count_pos,"positives") else: print("no positives") if(count_neg>0): print("there are",count_neg,"negatives") else: print("no negatives")