Fibonacci numbers in Unix shell
Example for versions
Bash 4.0.35
a=0
b=1
for (( n=1; $n<=16; n=$n+1 ));
do
a=$(($a + $b))
echo -n "$a, "
b=$(($a - $b))
done
echo "..."
Comments
]]>blog comments powered by Disqus
]]>