def get_array_from_user():
user_input = input("Введите числа через пробел: ")
return list(map(int, user_input.split()))
def product_of_multiples_of_five(array):
product = 1
found = False
for num in array:
if num % 5 == 0:
product *= num
found = True
return product if found else None
def main():
array = get_array_from_user()
result = product_of_multiples_of_five(array)
if result is not None:
print("Произведение кратных 5:", result)
else:
print("нет")
if __name__ == "__main__":
main()