#write a program that reads 10 ints and prints only odd numbers #also, program counts the number of odd numbers in the input #also the program finds sum and average of odd numbers, and product #of odd numbers i = 0 #i=0,1,2,3,4,5,6,7,8,9 - all these values of i will make statement #i<10 True so loop will be executed count_odd=0 #this variable will be used to count odd numbers sum_odd = 0 #to accumulate to the sum of odd product_odd = 1 #to accumulate product of odds print("printing only odd numbers") while(i<10): num=int(input("enter int ")) if(num%2!=0): print(num) count_odd=count_odd+1 sum_odd=sum_odd+num product_odd=product_odd*num i=i+1 if(count_odd>0): print("there are", count_odd,"odds") print("sum of odds",sum_odd) print("product of odds", product_odd) ave_odd = sum_odd/count_odd print("average of odds is", ave_odd) else: print("no odds")