New course! Every coder should learn Generative AI!
Try a free lesson+ 1
val sum = 0 is wrong declaration in println. Just simply write like this
println("Sum is ${x + y}");
readLine is a function so you should write with paranthesis
readLine()
I don't think you tried too much. I don't know swift but I got problem and gave solution to you.