Course of Raku / Essentials / Strings / Exercises

Name length

Problem

Write a program that asks the user for their name and prints the length of the name.

Example

When you run the program and enter your name in response to the prompt, the program prints a single number: the length of the entered name.

$ raku name-length.raku
What is your name? Alexander
9

Solution

See the solution

Course navigation

Scalar variables / Names of the variables   |   Numbers

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська