Passing negative numbers to the mod() function

Report a typo

What is the output of the following code?

val dividend = 15
val divisor = -4

val remainder = dividend.mod(divisor)
println(remainder)


Enter a number
___

Create a free account to access the full topic