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

The last three

Problem

Build the arithmetic sequence that counts from 5 to 50 in steps of five, and print only its last three values using the tail method.

Example

The program prints:

(40 45 50)

Solution

See the solution

Course navigation

Solution: Powers of two   |   Solution: The last three