Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- summ = 0
- counter = 0
- number = int(input("Введите оценку от 1 до 12, 0 - прекратить ввод: "))
- while number != 0:
- summ += number
- counter += 1
- number = int(input("Введите оценку от 1 до 12, 0 - прекратить ввод: "))
- print(summ / counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement