✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Write a Python program that:
Prompts the user to enter 5 integer numbers.
Checks if each number is even.
If the number is even, writes it to a file named even_numbers.txt, each on a new line.
After all inputs, reads the file and:
Prints all even numbers
Prints their total sum
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!