(0...cnpj.length).each do|i| c = cnpj[i]; if (c<?0 || c>?9) puts 'Só aceita números' end end
#ruby
5
respostas
4
3