Course of Raku / Essentials / More about types / 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

Course navigation

Solution: Odd indices   |   Solution: Print a series of numbers

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська