RosettaCodeData/Task/FizzBuzz/Nu/fizzbuzz-2.nu

4 lines
143 B
Text
Raw Permalink Normal View History

2025-02-27 18:35:13 -05:00
1..100 | each {
if $in mod 15 == 0 {'FizzBuzz'} else if $in mod 3 == 0 {'Fizz'} else if $in mod 5 == 0 {'Buzz'} else {$in}
} | str join "\n"