Course of Raku / Essentials / Scalar variables / Exercises

The answer to life, the Universe and everything

Problem

Create a program that prints The answer to life, the Universe and everything, which is stored in a variable.

Example

The expected behaviour of the program is demonstrated below:

$ raku answer.raku
42

Solution

See the solution

Next exercise

💪 Swap values

Course navigation

Comments / Embedded comments   |   Strings