Kalkulačka zná magickou funkci
This commit is contained in:
parent
cf09d8ceb9
commit
61a0abca8c
1 changed files with 2 additions and 0 deletions
|
@ -14,5 +14,7 @@ elif operator == '%':
|
|||
print("Modulo je", a % b)
|
||||
elif operator == '^':
|
||||
print("Mocnina je", a ^ b)
|
||||
elif operator == 'f':
|
||||
print("Magická funkce je", a**2 + b**2)
|
||||
else:
|
||||
print("Tento operátor neznám")
|
||||
|
|
Loading…
Reference in a new issue