Course of Raku / 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!
, whereName
is 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
Next exercise
Course navigation
← Comments / Embedded comments | Strings →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська