Division Remainder

Write a function remainder that takes the numbers a and b and returns the remainder of dividing a by b. The divisor b is never 0. The % operator will help — it gives the remainder of a division.

Примеры

Ввод
10, 3
Вывод
1
Ввод
20, 5
Вывод
0
Ввод
17, 4
Вывод
1

Нужно реализовать

def remainder(a: int, b: int) -> int:

Теги

math
PostgreSQLv16

Här visas resultatet av din kod

Tests12
Visible tests
Dolt test 7
Dolt test 8
Dolt test 9
Dolt test 10
Dolt test 11
Dolt test 12

They run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.

Focus radio
Paused · SomaFM · Fluid