Hi i was just writing a small program in kotlin which takes input from user and convert it into string. But i observed it threw an error when i used readline() to take input....any guesses it doesn't work on solo learn?
It does work fine. However, SoloLearn input works differently than elsewhere. The input prompt must receive all of the inputs your program requires. Once done, the inputs & code get loaded on a server and run. After it completes, the outputs are transfer back to display on your device.
I have capitalized the L in readLine now it is demanding an input but after giving let say "2012" as an input it shows on screen the first print statement which is "enter the year......" and once it also gave me "memory limit exceeds" on entering 2222