Division operator

Report a typo

You must implement the operator "/" to perform the division of a String representation of an Integer by a value.

println("13" / 8)
println("12" / 2)

Sample Input 1:

9

Sample Output 1:

4
Write a program in Kotlin
// define the function
/*?*/(number: Int): Int {
// and write your code here
}
___

Create a free account to access the full topic