Console.Clear(); C# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Console.Clear(); C#

I have code if(x == help) { Console.Clear(); } Why this no work? Pls help :)

27th Aug 2020, 7:10 AM
[No Name]
8 Answers
+ 6
On the SoloLearn compiler Console.Clear() won’t work, but if you actually have C# installed and run it, it will work. Just a SoloLearn thing ☺️
27th Aug 2020, 7:35 AM
Rowsej
Rowsej - avatar
+ 3
~ swim ~ I’ve used repl.it before; it’s interactive (just a bit slow though). Ah well, until the day mobile phones are more capable....
27th Aug 2020, 8:57 AM
Rowsej
Rowsej - avatar
+ 2
Sorry, I already have the quotes in mu program. It just wont work. I put a writeline in it and it worked. Rowsej
27th Aug 2020, 7:29 AM
[No Name]
+ 2
Try it on sharp develop if you want to run it with low ram and storage it works very smooth on PC.
28th Aug 2020, 3:31 AM
Tech N Games
Tech N Games - avatar
+ 2
Tech N Games Yea it works great on my pc but when im away from it I just use this app
28th Aug 2020, 4:10 AM
[No Name]
+ 1
// You forgot the "quotes": if(x == "help") { Console.Clear(); }
27th Aug 2020, 7:27 AM
Rowsej
Rowsej - avatar
+ 1
Rowsej Yea thanks, i was thinking that. kinda sucks lol
27th Aug 2020, 7:36 AM
[No Name]
+ 1
~ swim ~ True... it’s tricky to get an interactive console with sockets...
27th Aug 2020, 8:18 AM
Rowsej
Rowsej - avatar