6th Oct 2018, 8:15 AM
Rameshwar Shivshette
Rameshwar Shivshette - avatar
6 Réponses
+ 4
There is no error. You just need to enter everything as soon as you run the program, like this: 2 3 8
6th Oct 2018, 8:19 AM
Anna
Anna - avatar
+ 4
Usually, the program is executed line by line. Whenever the user is supposed to enter something, the program pauses and waits for input. This doesn't work in SoloLearn. When you run the program, you have to enter everything at once, with every input in a new line. So if you want numerOfElements to be 5, you need to enter 5, followed by 5 integers. As soon as you run the program, you are asked for your input. This is what you need to enter: 5 1 2 3 4 5 (you can replace 1-5 with the values you want to use.)
6th Oct 2018, 8:39 AM
Anna
Anna - avatar
+ 3
thanks...
6th Oct 2018, 8:43 AM
Rameshwar Shivshette
Rameshwar Shivshette - avatar
+ 1
thanks...I can't understand.... explain please
6th Oct 2018, 8:25 AM
Rameshwar Shivshette
Rameshwar Shivshette - avatar
+ 1
how to make perfect programming language java
6th Oct 2018, 8:48 AM
Rameshwar Shivshette
Rameshwar Shivshette - avatar
0
You're welcome
6th Oct 2018, 8:45 AM
Anna
Anna - avatar