+ 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.
5 Respuestas
+ 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
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?
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 ?
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! :)
0
Well done, keep coding