Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sum=0
- count=0
- while True:
- x=int(input())
- if x==0:
- break
- if x%8==0:
- count=count+1
- sum=sum+x
- if count>0:
- sum=(sum/count)
- print(round(sum,1))
- else:
- print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement