Division Remainder
The remainder of division is useful for checking even numbers, cycles, schedules, and many other patterns. Write a function remainder that takes two numbers a and b. Return the remainder of dividing a by b, the same way Python’s % operator works.
Примеры
Ввод
10, 3Вывод
1Ввод
20, 5Вывод
0Ввод
17, 4Вывод
1Нужно реализовать
def remainder(a: int, b: int) -> int:
Теги
math
Idħol biex tara l-istorja tas-sottomissjonijiet
IdħolIdħol biex tuża l-Mentor tal-AI
IdħolVisible tests
1
Input
10, 3Expected
12
Input
20, 5Expected
03
Input
17, 4Expected
14
Input
1, 7Expected
15
Input
100, 7Expected
26
Input
20, 1000Expected
20Focus radio
Paused · SomaFM · Fluid