+ 3

Is scanner in kotlin works in SoloLearn?

So I tried to use a scanner in kotlin. While I removed the ``, the input was showing up. Check this code https://code.sololearn.com/cqlgs3d7CR5Q/?ref=app

7th Jul 2020, 3:50 PM
M Fauzan Rizky Agusta
M Fauzan Rizky Agusta - avatar
1 Answer
+ 6
Add this: fun dummy() {readLine()} The playground does not prompt for input without seeing input is required. This function tricks it into thinking it is required.
7th Jul 2020, 4:06 PM
John Wells
John Wells - avatar