Ответ:
ПРОГРАММА 1:
a = int(input())
b = int(input())
n = 1
for i in range(a,b+1):
if (i*6)%10 == 2:
n*=i
print(n)
ПРОГРАММА 2:
n = int(input())
summ = 0
for i in range(1, n):
print(f"{i}*{i+1}",end="+" if i < n-1 else "=")
summ += i * (i+1)
print(summ)
ПРОГРАММА 3:
b = []
for i in range(0,a):
summ+=b
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
ПРОГРАММА 1:
a = int(input())
b = int(input())
n = 1
for i in range(a,b+1):
if (i*6)%10 == 2:
n*=i
print(n)
ПРОГРАММА 2:
n = int(input())
summ = 0
for i in range(1, n):
print(f"{i}*{i+1}",end="+" if i < n-1 else "=")
summ += i * (i+1)
print(summ)
ПРОГРАММА 3:
a = int(input())
summ = 0
b = []
for i in range(0,a):
b = int(input())
summ+=b
print(summ)