Why can't inputs be done while the code is running? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why can't inputs be done while the code is running?

I'm trying to make a code a sort guess the number game but you need more than one try but it seems to be impossible the get a input at runtime in sololearn.

29th Aug 2017, 10:44 AM
Joel Burleson
Joel Burleson - avatar
2 Answers
+ 10
its just the way it works here. compiled languages are sent to the server as text when you click run. They are compiled and run on the server. The results are sent back to the app/webpage as text and displayed. You will have to run(compile) the code on your (a) computer to have it run as you intended
29th Aug 2017, 10:47 AM
jay
jay - avatar
0
the server will stop every time it wait for input, so sololearn gets the input before
29th Aug 2017, 12:15 PM
Andrés04_ve
Andrés04_ve - avatar