1)
while True:
___a = int(input())
___b = int(input())
___if a > 0 and b > a:
______break
___else:
______print('Соблюдайте условие (0 < A < B)!')
for i in range(a, b+1):
___print(i**2)
2)
x = 4
while x != -4.5:
___y = x ** 3 - x ** 2 + 16 * x - 43
___print(y)
___x -= 0.5
3)
n = int(input())
lst = []
k = 0
for i in range(2, n+1):
___for j in range(2, i):
______if i % j == 0:
_________k = k + 1
___if k == 0:
______lst.append(i)
______k = 0
print(lst)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1)
while True:
___a = int(input())
___b = int(input())
___if a > 0 and b > a:
______break
___else:
______print('Соблюдайте условие (0 < A < B)!')
for i in range(a, b+1):
___print(i**2)
2)
x = 4
while x != -4.5:
___y = x ** 3 - x ** 2 + 16 * x - 43
___print(y)
___x -= 0.5
3)
n = int(input())
lst = []
k = 0
for i in range(2, n+1):
___for j in range(2, i):
______if i % j == 0:
_________k = k + 1
___if k == 0:
______lst.append(i)
___else:
______k = 0
print(lst)