In Sololearn it asks for all the inputs in the beginning only. Can't I get it according to my program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

In Sololearn it asks for all the inputs in the beginning only. Can't I get it according to my program?

In some programs I need to give an output first and then only i want to get input from user. But I am not able to do so.

7th Jun 2017, 5:15 PM
Rahul Prabhakar
Rahul Prabhakar - avatar
3 Answers
+ 5
Nope. that's the way the code playground works. there's no way to do that here.
7th Jun 2017, 5:46 PM
Mario L.
Mario L. - avatar
+ 3
cant it be improved to work as per the program? Because some codes can't work well without this.
7th Jun 2017, 6:10 PM
Rahul Prabhakar
Rahul Prabhakar - avatar
+ 3
The code isn't compiled on your phone; instead, it's sent to a server and then the results/output is printed on your screen. To simulate user input you could maybe use a string or int array of predetermined choices.
7th Jun 2017, 7:47 PM
Bagshot
Bagshot - avatar