Ответ:
1.
a = int(input())
sum = 0
iter = 1
while(iter <= 100):
if iter % a == 0:
sum = sum + iter
iter = iter + 1
print(sum)
2.
b = int(input())
mult = 1
while(a <= b):
if a % 7 == 0:
sum = sum + a
mult = mult * a
a = a + 1
print(mult)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
1.
a = int(input())
sum = 0
iter = 1
while(iter <= 100):
if iter % a == 0:
sum = sum + iter
iter = iter + 1
print(sum)
2.
a = int(input())
b = int(input())
sum = 0
mult = 1
while(a <= b):
if a % 7 == 0:
sum = sum + a
mult = mult * a
a = a + 1
print(sum)
print(mult)