Предмет: Математика, автор: 5imkafoma

срочно решите!!!!!!! Очень нужно

Приложения:

Ответы

Автор ответа: juniorotabekpai8do
1

Решение внизу на фото

Приложения:
Автор ответа: sasha203180
0
1) =4. 2) = - 0.012)
Похожие вопросы
Предмет: Информатика, автор: Sparta2016840
Python, студия не видит переменные 'a' и 'b', в одном участке кода, но видит их в другом и видит 'c' везде. ДАЮ 60 БАЛЛОВ
Не видит в def Checker()
код:
name = input("start, give me your name: ")


def fixering(number):
print(number)

def Checker(numb):

if numb == 0:
try:
a = int(input("I need only ints! what is a? - "))
except:
Checker(0)
else:
print("a = " + str(a))
elif numb == 1:
try:
b = int(input("I need only ints! what is b? - "))
except:
Checker(1)
else:
print("b = " + str(b))
elif numb == 2:
try:
c = int(input("I need only ints! what is c? - "))
except:
Checker(2)
else:
print("c = " + str(c))
print("Count: ((a + b) * c + 25) + a = ?")
print("Count: ((" + str(a) +" + "+ str(b) + ") * " + str(c) + " + 25) + " + str(a) + " = " + " ?")
answ = input("What is your answer? Give it me first! - ")
summAB = int(a) + int(b)
summ1 = summAB * int(c)
summ2 = summ1 + 25
summ3 = int(summ2) + int(a)

if str(answ) == str(summ3):
print("((" + str(a) +" + "+ str(b) + ") * " + str(c) + " + 25) + " + str(a) + " = " + str(summ3) +
". Yes, " + str(name) + ", you said right!" + " It's really " + str(summ3) + "!")
else:
print("((" + str(a) +" + "+ str(b) + ") * " + str(c) + " + 25) + " + str(а) + " = " + str(summ3) +
". No, " + str(name) + ", look at the answer and try again!" + " It's easy, the asnwer is " + str(summ3) + "!")

fixering(2)
def main():
try:
a = int(input("what is a? - "))
except:

Checker(0)
else:
print("a = " + str(a))

try:
b = int(input("what is b? - "))
except:
Checker(1)
else:
print("b = " + str(b))
# c
try:
c = int(input("what is c? - "))
except:
Checker(2)
else:
print("c = " + str(c))
print("Count: ((a + b) * c + 25) + a = ?")
print("Count: ((" + str(a) +" + "+ str(b) + ") * " + str(c) + " + 25) + " + str(a) + " = " + " ?")
answ = input("What is your answer? Give it me first! - ")
print(a,b,c)
summAB = int(a) + int(b)
summ1 = summAB * int(c)
summ2 = summ1 + 25
summ3 = int(summ2) + int(a)

if str(answ) == str(summ3):
print("((" + str(a) +" + "+ str(b) + ") * " + str(c) + " + 25) + " + str(a) + " = " + str(summ3) +
". Yes, " + str(name) + ", you said right!" + " It's really " + str(summ3) + "!")
else:
print("((" + str(a) +" + "+ str(b) + ") * " + str(c) + " + 25) + " + str(a) + " = " + str(summ3) +
". No, " + str(name) + ", look at the answer and try again!" + " It's easy, the asnwer is " + str(summ3) + "!")


main()