Course of Raku / Essentials / More about types / 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
125Solution
Course navigation
← Quiz — working with ranges | Solution: Square and cube →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська