# 1
for i in range(10,99+1):
if i % 21 == 0:
print(i)
# 2
pr = 1
for i in range(11, 37+1):
if i % 2 != 0:
pr *= i
print(pr)
# 3
summ = 0
for i in range(17, 40+1):
if i % 2 != 0 and i % 7 != 0:
summ += i
print(summ)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
# 1
for i in range(10,99+1):
if i % 21 == 0:
print(i)
# 2
pr = 1
for i in range(11, 37+1):
if i % 2 != 0:
pr *= i
print(pr)
# 3
summ = 0
for i in range(17, 40+1):
if i % 2 != 0 and i % 7 != 0:
summ += i
print(i)
print(summ)