+ 1
How slove this error
6 Antworten
+ 4
There is no error. You just need to enter everything as soon as you run the program, like this:
2
3
8
+ 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.)
+ 3
thanks...
+ 1
thanks...I can't understand.... explain please
+ 1
how to make perfect programming language java
0
You're welcome