Course of Raku / Essentials / Numbers / Exercises

Sum of numbers

Problem

Write a program that asks to enter three numbers (one after another), and then prints the sum.

Example

Here is an expected script of using the program:

$ raku sum-of-numbers.raku
Enter number A: 10
Enter number B: 20
Enter number C: 30
The sum of the numbers is 60.

Solution

See the solution

Next exercise

💪 Class desks

Course navigation

Strings / String length   |   Boolean type

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