Course of Raku / Essentials / Variables and data types essentials / Strings / Exercises
Hello, Concatenation!
Problem
Remember our test program called ‘Greet a person’? Let us repeat it on a new level.
Write a program that asks the user for their name and for the city they come from, and then prints a greeting that mentions both. Use string concatenation in the solution.
Example
If you run the program, you get two prompts:
$ raku hello-concatenation.raku
What is your name? Ella
Where are you from? LisbonThen the program prints the greeting:
Hello, Ella from Lisbon!
Solution
Course navigation
← Quiz: The length of a phrase | Solution: Hello, Concatenation! →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська