Course of Raku / Essentials / More about types / Typed variables / Exercises
Examine the result of
prompt — Numbers
Task
Modify the program from the previous exercise. This time, it should
ask to enter a number. Examine the type of the value returned by
prompt. Run the program a few times and enter the numbers
of different types (integers, rationals, and floating-point
numbers).
Solution
Course navigation
← Solution:
Examine the result of prompt — Strings | Solution:
Examine the result of prompt — Numbers →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська