Merge branch 'kalkulacka'
This commit is contained in:
commit
4c157b5b28
1 changed files with 14 additions and 0 deletions
14
kalkulacka.py
Normal file
14
kalkulacka.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
a = int(input("Zadej prvni cislo"))
|
||||
b = int(input("Zadej druhe cislo"))
|
||||
|
||||
operator = input("Zadej operátor")
|
||||
if operator == '+':
|
||||
print("Součet je", a + b)
|
||||
elif operator == '-':
|
||||
print("Rozdíl je", a - b)
|
||||
elif operator == '*':
|
||||
print("Součin je", a * b)
|
||||
elif operator == '/':
|
||||
print("Podíl je", a // b)
|
||||
else:
|
||||
print("Tento operátor neznám")
|
Loading…
Reference in a new issue