Multiple ReadLines Not Working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Multiple ReadLines Not Working

Is there a way to run code with multiple ReadLines in it without crashing? My code works fine in Visual Studio but not here.

2nd Feb 2017, 8:55 PM
Matthew Lowrey
Matthew Lowrey - avatar
3 Answers
+ 6
You're welcome! :D Use the first one - one input per line.
2nd Feb 2017, 9:25 PM
Tamra
Tamra - avatar
+ 5
In the SoloLearn compiler, you have to give *all* the inputs in that first window you get for input. Write each input for the ReadLines on their own separate lines, and it should work.
2nd Feb 2017, 9:14 PM
Tamra
Tamra - avatar
+ 1
I thought it might be that. So, to make sure I understand, if I request 3 numbers in a program, I should do the following in the pop-up window: 3 4 5 Or do I do it like: 3 4 5 Thanks @Tamra!
2nd Feb 2017, 9:18 PM
Matthew Lowrey
Matthew Lowrey - avatar