for ($i = @ARGV[0];
print("$i\n"), $i > 1;
$i = $i % 2 ? $i * 3 + 1 : $i / 2) { };
(This is really a one-liner, but I've broken it over three lines to fit the text width.)
Rambling recollections of an aging engineer
for ($i = @ARGV[0];
print("$i\n"), $i > 1;
$i = $i % 2 ? $i * 3 + 1 : $i / 2) { };
No comments:
Post a Comment