#counter controlled repetition #we read 10 integers and find sum and average of even positive ints def main(): sum=0 count=0 for i in range(10): n=int(input("enter int ")) if(n>0 and n%2==0): sum+=n count+=1 if(count>0): print(sum, sum/count) else: print("no positives even") main()