в чем ошибка (калькулятор на питоне) пишет что тут( if c != "0" :
print (a/b)
a = float(input())
c = input()
b = float(input())
if c == "-" :
print (a-b)
elif c == "/" :
if c != "0" :
print (a/b)
else :
print("Деление на ноль!")
elif c == "*":
print(a*b)
elif c == "mod":
print (a % b)
elif c == "pow":
print(a ** b)
elif c == "div":
print(a // b)
elif c == "+":
print(a+b)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.