Václav Končický
4 years ago
1 changed files with 11 additions and 1 deletions
@ -1,4 +1,14 @@ |
|||||
a = int(input("Zadej prvni cislo")) |
a = int(input("Zadej prvni cislo")) |
||||
b = int(input("Zadej druhe cislo")) |
b = int(input("Zadej druhe cislo")) |
||||
|
|
||||
print("Souce je", a + b) |
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