Why won’t this code work here | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
6th Jul 2018, 7:05 PM
Zdog
Zdog - avatar
6 Answers
+ 2
Works fine for me? Only thing I notice is that you can't use readkey() since you're simply receiving the output instead of viewing it from an active console. Otherwise it works fine.
6th Jul 2018, 7:08 PM
Fata1 Err0r
Fata1 Err0r - avatar
0
I domt know C# but from exception message i presume that your have to remove Console.ReadKey on SL because SL redirect input and this raise an exception of that method is called
6th Jul 2018, 7:10 PM
KrOW
KrOW - avatar
0
i just edited the code some and foxed some things but it wont let me enter in user input
6th Jul 2018, 7:25 PM
Zdog
Zdog - avatar
0
the console.readline wont activate
6th Jul 2018, 7:26 PM
Zdog
Zdog - avatar
0
Zdog Your original code worked on normal context BUT raised an exception on Sololearn system
6th Jul 2018, 7:27 PM
KrOW
KrOW - avatar
0
ok ty
9th Jul 2018, 12:56 AM
Zdog
Zdog - avatar