Divisibility test

Report a typo

You must create an infix function called div that returns true if an integer is divisible by another x integer.

println(13 div 8)

Sample Input 1:

9

Sample Output 1:

false
Write a program in Kotlin
// complete the definition
/*?*/.div(number: Int): Boolean {
// write the rest of the code
}
___

Create a free account to access the full topic