+ 1
User input in Sololearn code
When I create and run code in Sololearn editor (using C#) and I have to use some user input it have to be written in special window. Is it a possibility to display in this window query for user? For example I want to write text like "Write an integer" using Console.WriteLine
4 Réponses
+ 3
You may use Console.WriteLine
It can be followed by a Console.ReadLine
But the input in your program need to be give before the start of the run in the special window.
Because the playground is on a remote server. It is not possible to have communication between program and user during the run.
Use visual studio community version to have a development enviroment on your own laptop.
+ 3
@Bartek
You cannot do windows application programming on sololearn.
You do not have the memory, or the libraries you need to do it.
+ 1
Thank you for the answer. I knows how to do this in the VS but I hoped that such communication is possible also in Sololearn.
0
That's like, the custom input we give in codechef, hackerrank.