Course of Raku / Essentials / Variables and data types essentials / Scalar variables / Exercises
Greet a person
Problem
Write a program that does the following two actions:
- Asks the user for their name.
- Prints a message
Hello, Name!, whereNameis the name that was just entered.
In this program, please use variables.
Example
The expected behaviour of the program is demonstrated below:
$ raku greet-a-person.raku
What is your name? John
Hello, John!Solution
Course navigation
← Quiz: Valid names of the variables | Solution: Greet a person →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська