+ 1

How do solo learn play ground compile codes and run it on mobile....

every time I see people write codes in different programming languages but most apart from web will never run on my phone. please oooh, for those people that normally upvote such codes, how do you see the output???? how does it work?, please am confused!!!

19th Sep 2017, 10:54 PM
Nzagha David
Nzagha David - avatar
4 Answers
+ 3
Some authors put "sample input" in the comments to the code, but often you have to read the code to see what they want. You can also just send blank input and see if the program crashes. Again, it's up to the authors whether they give you hints on bad input. Ace's codes (look in Trending) often choose default values so you can see what the program does.
19th Sep 2017, 11:06 PM
Kirk Schafer
Kirk Schafer - avatar
+ 4
Just hit [Run]. They actually run on SoloLearn's server, which sends you the output.
19th Sep 2017, 10:58 PM
Kirk Schafer
Kirk Schafer - avatar
+ 3
A couple examples from Ace's code that deal with "no input" different ways: Gives you a nice error message with instructions: https://code.sololearn.com/cUx55EsTKnaz/?ref=app Chooses a default value and continues anyway: https://code.sololearn.com/cwuDo4hqI0A8/?ref=app
19th Sep 2017, 11:15 PM
Kirk Schafer
Kirk Schafer - avatar
0
you're saying that I'll have had to wait for a longer time. but some codes require my input and I don't even know why and what am prompted to input
19th Sep 2017, 11:02 PM
Nzagha David
Nzagha David - avatar