0
User Input doesn’t work
My Program should ask the user to input 5 numbers, they’re going to be stored in the declared array. After that the second array should double the user input numbers, but it doesn’t work, I’ve used the Java.io.* Import with a buffered reader, could someone help me figure out what’s wrong and what I could improve? https://code.sololearn.com/cy4WvevgIAlw/?ref=app
1 ответ
+ 1
your code is fine, it's just the way code playground gets input. it has to be at once. the code is not going to ask you to enter a number each time.
run it and type numbers each one in a new line like :
1
2
3
4
5
then submit