Created
July 3, 2015 02:55
-
-
Save Jcpetrucci/81a10f90146d666f8472 to your computer and use it in GitHub Desktop.
fibonacci golf in 58 characters (bash)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
until((${#c}>8));do | |
a=$b | |
b=${c-1} | |
c=$((b+a)) | |
echo $c | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment