Добавить Calculator
This commit is contained in:
commit
34d419a03a
11
Calculator
Normal file
11
Calculator
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
a = int(input("Введите первую циферку"))
|
||||||
|
b = int(input("Введите вторую циферку"))
|
||||||
|
c = str(input("действие"))
|
||||||
|
if c == "+":
|
||||||
|
d = a+b
|
||||||
|
print(d)
|
||||||
|
elif c =="*":
|
||||||
|
e = a*b
|
||||||
|
print(e)
|
||||||
|
else:
|
||||||
|
print("Не обязан:3")
|
||||||
Loading…
Reference in New Issue
Block a user