number = int(input('Введите число: '))
s = 0
for divisor in range(1, number + 1):
if (number % divisor == 0) and (divisor % 2 == 0):
s += divisor
print('Сумма четных делителей:', s)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
number = int(input('Введите число: '))
s = 0
for divisor in range(1, number + 1):
if (number % divisor == 0) and (divisor % 2 == 0):
s += divisor
print('Сумма четных делителей:', s)