+ 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.
3 Answers
+ 5
Nope. that's the way the code playground works. there's no way to do that here.
+ 3
cant it be improved to work as per the program? Because some codes can't work well without this.
+ 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.