# ---1
k = 0
for i in range(10, 50+1):
if i % 3 == 0 and i % 7 == 0:
k += 1
print(k)
# ---2
for i in range(1, 100+1):
if i % 2 == 0 and i % 5 == 0:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
# ---1
k = 0
for i in range(10, 50+1):
if i % 3 == 0 and i % 7 == 0:
k += 1
print(k)
# ---2
k = 0
for i in range(1, 100+1):
if i % 2 == 0 and i % 5 == 0:
k += 1
print(k)