Compare commits
3 Commits
7bfe1a3cdc
...
4c157b5b28
Author | SHA1 | Date |
---|---|---|
Václav Končický | 4c157b5b28 | 3 years ago |
Václav Končický | d89434c869 | 3 years ago |
Náhodná Kočka | c3db89a363 | 3 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