Добавить calculator
This commit is contained in:
commit
b8b56b6f66
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