+ 2
How i add numbers in Array from keyboard
How can i input numbers or String in Array two or more times?Please give example. Thanks everybody:)
4 Réponses
+ 9
Using a loop. E.g. Assuming you have array of size 10,
for (int i = 0; i < 10; i++)
{
//input to array[i]
}
+ 9
Yep. As @Button Masher said, it's a problem with C.Playground. If you want to do it on here, you'll have to insert data line by line with Scanner input.
+ 2
Hatsy Rei But in Code Playgraund I cant add multiple numbers
+ 2
That's because sololearn is designed to only take one input. Is simply won't work In code playground. Try it on your pc or different IDE