#Write a program that reads a sequence of non-zero integers. First zero #value will terminate the input. The program finds and prints the number #or inputs, their sum and average. count=0 sum=0 #we have to read first input BEFORE the loop so we can use the condition #of non-zero inputs num=int(input("enter non-integer ")) while(num!=0): count=count+1 sum=sum+num num=int(input("enter non-integer ")) if(count>0): print(count,"ints in the input") print("their sum is", sum) print("their average is", sum/count) else: print("you didn't enter any non-zero integers")