Course of Raku / Essentials / Numbers / Exercises

Sum of numbers


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


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.


See the solution

Next exercise

💪 Class desks

Course navigation

Strings / String length   |   Boolean type