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

6th Oct 2022, 8:39 PM
Kas Chan
2 Réponses
+ 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
6th Oct 2022, 10:23 PM
SoloProg
SoloProg - avatar
+ 1
Thx
7th Oct 2022, 6:51 AM
Kas Chan