First code + problems | Sololearn: Learn to code for FREE!

+3

First code + problems

Hi guys ! I just have written my first code and wanted to share with you but: 1. It does work (kind off) on my VisualStudio but does not work on SoloLearn Code playground. Any ideas why ? 2. In VisualStudio it works as intended only if I choose option "B" or when I press different key than "A" or "B" If I press "A" or "Escape" to exit it does go through else statements as well. Any help or info would be appreciated. Thanks ! Code on my profile "Code#001" or link https://code.sololearn.com/c11Mmc2t2VQ8/#cs

c#

11/10/2018 1:07:29 PM

Kacper

4 Answers

New Answer

+6

Please put the language you use in the tags. Be aware that on sololearn you need to give all input before the code is processed. Because the code runs on a remote server. So you cannot use the do while loop with ConsoleKey.Escape https://code.sololearn.com/c0binsN68PEL Console.ReadKey changed in Console.Read Console.Clear you cannot use The rest of the code is fine.

+4

Probably Sololearn code playground doesn't support such things. https://www.sololearn.com/post/44879/?ref=app

+3

https://code.sololearn.com/c2fVKTVHJb8D/?ref=app

+2

Thank you for your time and tips Roneel & sneeze :)