84.4k views
0 votes
What is the remainder when the positive integer n is divided by the positive integer k, where k > 1 ?

User Jericon
by
5.1k points

1 Answer

3 votes
The remainder is given by the modulo function:
n mod k

It can also be found using the floor function:
n - k×floor(n/k)
User WindowsMaker
by
5.0k points