Программа:
Python:
a = int(input('a = '))
b = int(input('b = '))
summ = 0
for j in range(a, b + 1):
if all(int(i) % 2 == 1 for i in str(j)):
summ += j
print(summ)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа:
Python:
a = int(input('a = '))
b = int(input('b = '))
summ = 0
for j in range(a, b + 1):
if all(int(i) % 2 == 1 for i in str(j)):
summ += j
print(summ)