Example 1
Input
calculate_modulus(10, 3)
Output
1
10 divided by 3 is 3 with a remainder of 1.
Full lesson preview
Learn how to calculate the modulus of two numbers using the modulo operator.
Problem statement
Task
Examples
Input
calculate_modulus(10, 3)
Output
1
10 divided by 3 is 3 with a remainder of 1.
Input format
Output format
Constraints
Samples
Input
calculate_modulus(10, 3)
Output
1
The modulus of 10 divided by 3 is 1.