Compare commits
2 commits
0dba10c411
...
61a0abca8c
Author | SHA1 | Date | |
---|---|---|---|
|
61a0abca8c | ||
|
cf09d8ceb9 |
1 changed files with 4 additions and 0 deletions
|
@ -10,7 +10,11 @@ elif operator == '*':
|
||||||
print("Součin je", a * b)
|
print("Součin je", a * b)
|
||||||
elif operator == '/':
|
elif operator == '/':
|
||||||
print("Podíl je", a // b)
|
print("Podíl je", a // b)
|
||||||
|
elif operator == '%':
|
||||||
|
print("Modulo je", a % b)
|
||||||
elif operator == '^':
|
elif operator == '^':
|
||||||
print("Mocnina je", a ^ b)
|
print("Mocnina je", a ^ b)
|
||||||
|
elif operator == 'f':
|
||||||
|
print("Magická funkce je", a**2 + b**2)
|
||||||
else:
|
else:
|
||||||
print("Tento operátor neznám")
|
print("Tento operátor neznám")
|
||||||
|
|
Loading…
Reference in a new issue