+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?

12/11/2018 11:35:26 AM

DazVonHelmet

3 Answers

New Answer

+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

+2

Brilliant. Thank you 😁

+2

No problem. 😊