Course of Raku / Essentials / Functions essentials / The MAIN function / Exercises

Print the sum

Problem

Write a program that takes two integer numbers from the command line and prints their sum. Use the MAIN function with typed parameters.

Example

Here is an example of using this program:

$ raku print-the-sum.raku 500 700
1200

Solution

See the solution

Course navigation

Solution: Hello, World!   |   Solution: Print the sum

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