• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
+ 1

How can you output how many letters are in a string in Ruby

for ex if someone input the string "dog" I want it to output 3 or elephant would output 8

ruby
14th Feb 2018, 9:26 PM
willymynillyGaming
willymynillyGaming - avatar
1 Resposta
+ 5
https://stackoverflow.com/questions/15015235/count-total-characters-in-an-array-of-strings-in-ruby#15015298
14th Feb 2018, 10:32 PM
Vukan
Vukan - avatar

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
code coach
4 Votes
I m just begginer, i don't even understand how to use this app.. send help.. im at level 1
0 Votes
Does this app support the audio tag?
0 Votes
Hi im a begneer and i dont understand how to code if anyone whos smart replay
0 Votes
i want correct anwer code
0 Votes
I dont know what i should do with java script
0 Votes
Who should or which website should i visit or watch so i could learn python??
1 Votes
IndexOf()
1 Votes
أنا مبتدئ، كيف أبدأ تعلم البرمجة وما هي أفضل لغة لي؟
1 Votes
Is there a level after intermediate Python?
1 Votes