count = 0
for i in range(21, 104):
if i % 2 == 0:
count = count + i
print(count)
for k in range(10, 101):
if k % 2 != 0:
count = count + k
a = int(input())
counter = 0
for j in range(1, 10000000000):
if j % a == 0:
counter = counter + 1
print(j)
if counter == 10:
break
Объяснение:
count = 0
for i in range(21, 104):
if i % 2 == 0:
count = count + i
print(count)
count = 0
for k in range(10, 101):
if k % 2 != 0:
count = count + k
print(count)
count = 0
a = int(input())
counter = 0
for j in range(1, 10000000000):
if j % a == 0:
counter = counter + 1
print(j)
if counter == 10:
break
Объяснение: