Václav Končický
4 years ago
1 changed files with 14 additions and 0 deletions
@ -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 new issue