RosettaCodeData/Task/Loops-While/Jq/loops-while-1.jq
2023-07-01 13:44:08 -04:00

2 lines
117 B
Text

# To avoid printing 0, test if the input is greater than 1
1024 | recurse( if . > 1 then ./2 | floor else empty end)