Course of Raku / Advanced / More about built-in types / Sequences / Exercises

Odd numbers

Problem

Print the odd numbers from 1 to 19, using the ... sequence operator.

Example

The program prints:

(1 3 5 7 9 11 13 15 17 19)

Solution

See the solution

Course navigation

Lazy and infinite sequences   |   Solution: Odd numbers