+ 1

Why does Console.ReadLine(); only work once in code playground?

I have a code that uses Console.ReadLine(); twice to take two values from the user but when I run it in code playground it only takes one value then throws an exception because the second value is undefined. Why does the playgriund do this?

11th Dec 2018, 11:35 AM
DazVonHelmet
DazVonHelmet - avatar
3 Antworten
+ 4
The Code Playground doesn't accept multiple inputs at present. https://www.sololearn.com/Discuss/771832/?ref=app https://www.sololearn.com/Discuss/1533298/?ref=app https://www.sololearn.com/Discuss/1002896/?ref=app I believe it's just a limitation. I hope this helps! 😊 Adding another one: https://www.sololearn.com/Discuss/1422651/?ref=app
11th Dec 2018, 11:53 AM
Janning⭐
Janning⭐ - avatar
+ 2
Brilliant. Thank you 😁
11th Dec 2018, 11:54 AM
DazVonHelmet
DazVonHelmet - avatar
+ 2
No problem. 😊
11th Dec 2018, 12:05 PM
Janning⭐
Janning⭐ - avatar