¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Why does this “gets” not work? If I place an integer in place of “gets” the program works fine. Curious!
2 Respuestas
+ 3
You might want to convert num to a number, not a string:
num = gets.to_i
+ 1
Ohhhhh! Thanks!