fork download
  1. total = 0
  2. counter = 0
  3.  
  4. while True:
  5. num = int(input())
  6. if num == 0:
  7. break
  8. elif 9 < num < 100 and num % 5 == 0:
  9. total += num
  10. counter += 1
  11.  
  12. if counter == 0:
  13. print('нет')
  14. else:
  15. print(total / counter)
Success #stdin #stdout 0.03s 9732KB
stdin
5
3
35
185
34
15
0
stdout
25.0