+ 2

can you take multiple different inputs?

on sololearn, is it possible to request info from the user for separate variables? maybe something like separating the responses with a comma, but that doesn't work also- when I try to assign the nextLine() input to 2 separate variables, it seems that the second variable is not being assigned the value.

29th Mar 2019, 2:38 AM
koala 🐨
koala 🐨 - avatar
2 Réponses
+ 7
Inputs are not interactive on code playground. When entering multiple inputs, the user has to separate each input with a newline.
29th Mar 2019, 3:25 AM
Sonic
Sonic - avatar
+ 3
oh yeah it says that, my bad- thank you
29th Mar 2019, 3:32 AM
koala 🐨
koala 🐨 - avatar