Why is this code not working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is this code not working?

fun main(args: Array<String>) { var x = readLine() println("Welcome," +x+ '!') }

28th Mar 2023, 4:58 PM
Val
Val - avatar
5 Answers
+ 5
Val Your code is working perfectly. https://code.sololearn.com/c4cbNy4G18uS/?ref=app If you are getting error then please provide more details.
28th Mar 2023, 5:19 PM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar
+ 2
I've tried running it but it keeps on crashing
28th Mar 2023, 5:07 PM
Val
Val - avatar
+ 2
can you share your code, sorry I won't be able to help you now but I think ma'am RšŸŒøšŸ‡®šŸ‡³ can help. **Sorry I've to exit now**
28th Mar 2023, 5:12 PM
I am offline
I am offline - avatar
+ 2
Ok
28th Mar 2023, 5:15 PM
Val
Val - avatar
+ 1
Val well I can see that the code is fully correct are you trying to add some features?
28th Mar 2023, 5:05 PM
I am offline
I am offline - avatar