why code playground is not asking for the second input? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why code playground is not asking for the second input?

this app ask only for the first input and it show error when it reaches the second input

4th Jun 2017, 7:48 PM
HASSAN AIT BIHI
3 Answers
+ 7
<< this app ask only for the first input and it show error when it reaches the second input >> Codeplayground have limitation about in/output because code is compiled/runned on server side and not locally: if you closely read request for 'first' input, you will see that in fact you're asked for ALL AT ONCE, EACH SEPARATED BY NEWLINES ^^ Suppose your code need user input for a number and then a string, you enter something as: 42 forty-two
4th Jun 2017, 8:39 PM
visph
visph - avatar
+ 3
Use the enter key for the next input
4th Jun 2017, 7:50 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 3
Simply the way it was designed. Use a different compiler if you want inputs to show at different times.
4th Jun 2017, 7:56 PM
Rrestoring faith
Rrestoring faith - avatar