Course of Raku / Essentials / More about types / Positional data types / Exercises

Count and print command-line arguments

Task

Write a program that reads an arbitrary number of arguments from the command line and prints them on separate, numbered lines.

Example

The expected behaviour of the program:

$ raku count-and-print-arguments.raku words to display
1. words
2. to
3. display

Solution

See the solution

Course navigation

Solution: Print command-line arguments   |   Solution: Count and print command-line arguments

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