Course of Raku / Essentials / Variables and data types essentials / Strings / Exercises
Name length
Problem
Write a program that asks the user for their first name and their last name separately, and then prints how many letters there are in the two names together (not counting the space between them).
Example
When you run the program and answer both prompts, the program prints a single number: the combined length of the two names.
$ raku name-length.raku
First name: Ada
Last name: Lovelace
11Solution
Course navigation
← Solution: Purchase table | Solution: Name length →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська