+ 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...

15th Jul 2017, 7:44 AM
Abdul Azeez
Abdul Azeez - avatar
5 Respostas
+ 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
15th Jul 2017, 7:52 AM
Hatsy Rei
Hatsy Rei - avatar
+ 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?
15th Jul 2017, 7:51 AM
visph
visph - avatar
+ 3
Thank you for helping @visph @Hatsy Rei
15th Jul 2017, 8:15 AM
Abdul Azeez
Abdul Azeez - avatar
+ 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...
31st Aug 2017, 10:52 PM
Semako ADOVOHEKPE
Semako ADOVOHEKPE - avatar
+ 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.
17th Sep 2017, 2:39 PM
Semako ADOVOHEKPE
Semako ADOVOHEKPE - avatar