Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Why does this āgetsā not work? If I place an integer in place of āgetsā the program works fine. Curious!
2 Respostas
+ 3
You might want to convert num to a number, not a string:
num = gets.to_i
+ 1
Ohhhhh! Thanks!