Course of Raku / Essentials / Built-in functions for printing / Exercises
Compare say
and put
Problem
Write a program that allows to see the differences between say
and put
for the data types we’ve learned so far: Int
, Rat
, Num
, Str
, Array
, List
, Range
, and Hash
. For scalar items, use typed variables.
Example
The program should print at least one result for every data type using both say
and put
.
$ raku compare-say-and-put.raku
42
42
0.75
0.75
. . .
Solution
Next exercise
Course navigation
←
More about functions
/ Multi-functions
|
The MAIN
function
→
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська