+ 1
《How to take two inputs ??? 》
How to take two input in sololearn playground ??? I tried it for my first ruby program and failed??? https://code.sololearn.com/cjXcym6kZ7bs/?ref=app please help...
5 Respuestas
+ 10
Code Playground takes input prior to code compilation, hence all input has to be fed to the compiler and sent to the server at once. Split multiple input into different lines, e.g. If your code requires two integer inputs:
3
4
+ 5
You need to provide all the requested input at once (each separated by a new line) in code playground... But the code you've linked require only one input ^^ So, what's exactly your try/expect?
+ 3
Thank you for helping @visph @Hatsy Rei
+ 2
@Hasty Rei: how do I do that on a windows machine or even in the app? It seems that using the "enter" key to get to the second line sends an EOF code to the interpreter...
+ 1
ok, i finally got multiple line input on the android app, but no way of automatically running the loop several times; and if not careful when looking at the ouput, one does not even notice that the loop ran well a first time before the EOF error on the second loop.