Course of Raku / Essentials / Positional data types / Exercises

Print a series of numbers

Task

Create a program that asks to enter two integer numbers A and B (such as A ≤ B) and then prints all integer numbers from A to B including both A and B.

Example

The program should work like this:

$ raku series-of-numbers.raku
Begin: 14
End: 17
14
15
16
17

Solution

See the solution

Next exercise

💪 Spell a number

Course navigation

Typed variables / Allomorphs   |   Associative data types