Kalkulačka umí i modulo

This commit is contained in:
Václav Končický 2021-05-04 18:29:20 +02:00
parent 0dba10c411
commit cf09d8ceb9

View file

@ -10,6 +10,8 @@ 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)
else: else: