#write a program that reads a sequence of NON-zero ints #and prints inputs that are even and div by 3 #the input is terminated by 0 #sentinel controlled repetition #there is a condition to stop the loop #find the number of ints that are even and div by 3 and their sum and average num=int(input("enter non zero int, first zero terminates input ")) counter=0 sum=0 while(num!=0): if(num%2==0 and num%3==0): print(num) counter=counter+1 sum=sum+num num=int(input("enter non zero int, first zero terminates input ")) if(counter>0): print("sum", sum) print("counter",counter) print("average", sum/counter) else: print("no evens div by 3 ")