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.
Declaring functions
Division
Report a typo
Sample Input 1:
500000000000
200000000000Sample Output 1:
2.5Write 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))
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.