Ответ:
import math
import random
from math import sqrt
# 1 Prog
sum = 0
pick = True
while(pick):
x = int(input('Введите трехзначных чисел или 0 для остановку програм: '))
if x != 0:
sum = sum + x
else:
pick = False
print('сумма: ', sum)
# 2 Prog
for x in range(-20,11):
try:
a = sqrt(pow(5 * x,2) + 3 * x + 10)/(x - 5)
except:
a = 0
print(f'x = {x} -> {a}')
# 3 Prog
page = 0
while (page != 5):
print(random.random())
page = page + 1
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
import math
import random
from math import sqrt
# 1 Prog
sum = 0
pick = True
while(pick):
x = int(input('Введите трехзначных чисел или 0 для остановку програм: '))
if x != 0:
sum = sum + x
else:
pick = False
print('сумма: ', sum)
# 2 Prog
for x in range(-20,11):
try:
a = sqrt(pow(5 * x,2) + 3 * x + 10)/(x - 5)
except:
a = 0
print(f'x = {x} -> {a}')
# 3 Prog
page = 0
while (page != 5):
print(random.random())
page = page + 1
Объяснение: