0

What is the correct method to get 3 or plus integers of the user in ruby?

For example: I want introduce 3 integer: 1 2 3 (without space or with coma, How?)

25th Sep 2019, 4:10 AM
Nicolás Morales
Nicolás Morales - avatar
2 Réponses
+ 4
if you want several values from user you can at first take the number of inputs then get them one by one or you can get a string holds everything then analyse it and separate the inputs
25th Sep 2019, 4:37 AM
ABADA S
ABADA S - avatar
0
I probe a simlar program in C++, and I had the same question, so it's correct in your answer. But for me was new that the web system show first a window where get the data.
8th Oct 2019, 4:12 AM
Nicolás Morales
Nicolás Morales - avatar