Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
You mean if you want a input from the user? Eclipe "Please input a number:" Input the number "Please input a second number:" Input this number Sololearn: You have to input all numbers in the input window. Imagine you have a random number and your goal is to guess this number. You would create a random number and ask the user for a number. while (random != number){ ask the user for a new number } In Sololearn it would mean that you have to input all your guesses at once. And if all your guesses are wrong you would get an error. Because your while loop is still running but there is no input number anymore. In ecplipe you can input your guesses step by step when its needed. I hope this helps. edit: sl input: seperate it with whitespace. for example: 1 3 2 or a b c or hello world
23rd Jan 2019, 4:38 PM
Denise Roßberg
Denise Roßberg - avatar