Course of Raku / Advanced / Subroutines / More on MAIN subroutines / Exercises

Add two arguments

Problem

Write a program whose MAIN subroutine takes two positional arguments and prints their sum.

Example

$ raku two-arguments.raku 2 3
5

Solution

See the solution

Course navigation

Solution: A typed MAIN   |   Solution: Add two arguments