Division

Report a typo

Write a function named divide that takes two long numbers and returns a double value. It should return the result of the division of the first argument by the second one. It's guaranteed that the second argument is not zero.

Sample Input 1:

500000000000
200000000000

Sample Output 1:

2.5
Write a program in Kotlin
// write your code here

/* Do not change code below */
fun main() {
val a = readLine()!!.toLong()
val b = readLine()!!.toLong()
println(divide(a, b))
}
___

Create a free account to access the full topic