Добавить calculator
This commit is contained in:
commit
6f09f68bdb
11
calculator
Normal file
11
calculator
Normal file
@ -0,0 +1,11 @@
|
||||
a = int(input("Введите первую цифру"))
|
||||
b = int(input("Ввеидте вторую цифру"))
|
||||
d = str(input("*/+?"))
|
||||
if d == "*":
|
||||
c = a*b
|
||||
print(c)
|
||||
elif d == "+":
|
||||
e = a+b
|
||||
print("Ответ:",e)
|
||||
else:
|
||||
print("eror")
|
||||
Loading…
Reference in New Issue
Block a user