Sololearn: Learn to Code
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.
22nd Apr 2020, 4:38 AM
A͢J
A͢J - avatar