Course of Raku / Addendum 🆕 / Working with data / Numbers and mathematics / Exercises
One number, three bases
Problem
Print the number 255 written in binary (base 2), octal
(base 8), and hexadecimal (base 16), one per line.
Example
The program prints:
11111111
377
FFSolution
Course navigation
← Solution: Collatz steps | Solution: One number, three bases →