Search⌘ K
AI Features

Challenge: Character Counter

Explore building a Ruby program that counts letters from user input and stops only when exactly 13 letters are entered. Learn how to handle user input, validate data, and efficiently control program flow using loops.

Problem statement

Write a small program that asks users to enter some sequence of characters and outputs the count of characters. If the input sequence has 13 letters, the program must stop.  ...