in reply to Re^2: Fibo Golf challenge on 3 monkeys
in thread Fibo Golf challenge on 3 monkeys
Update: Now that the loop is down to 1 statement I can switch to a postfix for. I can also fold the initialization into the loop.perl -e '$a=1;for(A..J){print$a+=$b,$/,$b+=$a,$/}'
... and if you feel strongly about starting with F0=0,perl -e 'print$a+=$b||1,$/,$b+=$a,$/for A..J'
perl -e 'print$a+=$b,$/,$b+=$a||1,$/for A..J'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Fibo Golf challenge on 3 monkeys
by Anonymous Monk on Jul 15, 2007 at 20:51 UTC |