"Looks like your program needs input" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

"Looks like your program needs input"

Everytime when I try to run my C# code, this pops up and asks me to "split multiple inputs into separate lines". Can anybody help me please? I'm newbie though.

20th Nov 2018, 9:37 PM
redzhep
5 Answers
+ 1
Please can you give a link to your code ? In the sololearn playground all inputs need to be given before the code runs. If you have 3 readlines in your code. You put in a b c in the pop-up and the code will use the inputs in the order you have given
20th Nov 2018, 9:44 PM
sneeze
sneeze - avatar
0
Right now I'm going through the course, and I'm seeing that in the examples there (for c#) there's not the Console.ReadLine(); part which I am used to put in the very end of my simple codes, and the examples obviously works without asking me for inputs (most of the time). Might that be a problem as well?
20th Nov 2018, 9:55 PM
redzhep
0
Console.Readline in visual studio application is needed to prevent the command box from dissappearing. In the sololearn playground you do not need it. If there is no Console.Readline() the playground, it will not ask for inputs. Can you show use the code of which gives this pop-up ?
20th Nov 2018, 10:02 PM
sneeze
sneeze - avatar
0
Yeah, I've figured the issue out. This playground doesn't need that readline(); and when I put it there it asks for input in there.. Anyway, thanks so much! P.s. The code is just simple practice of converting to doubles and summing 2 numbers. The problem is not in it though. Thanks again! :)
20th Nov 2018, 10:06 PM
redzhep
0
Well done, keep coding
20th Nov 2018, 11:00 PM
sneeze
sneeze - avatar