Course of Raku / Essentials / Positional data types / Exercises
Square and cube
Problem
Create a program that prints the square and cube of an integer number that is passed to the program as a command-line argument.
Example
An example of using the program:
$ raku square-and-cube.raku 5
25
125
Solution
Next exercise
Course navigation
← Typed variables / Allomorphs | Associative data types →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська