0
What is wrong with this cod I can't run it anywhere
This is a Kotlin file but I can't run it anywhere https://code.sololearn.com/cIg7MjUl78IA/?ref=app
2 Respuestas
+ 2
fun main(args: Array<String>) {
var x: Int = readLine()!!.toInt()
var y: Int = readLine()!!.toInt()
println ("The sum is ${y+x}")
println ("The product is ${y*x}")
if (x>y) println ("The difference is ${x-y}")
else if (x<y) println ("The difference is ${y-x}")
else println ("The difference is 0")
println ("x/y is ${x/y}" )
println ("y/x is ${y/x}" )
}
https://www.sololearn.com/compiler-playground/cdUow3E2d47R
+ 1
Thx