Skip to content

Instantly share code, notes, and snippets.

@Jcpetrucci
Created July 3, 2015 02:55
Show Gist options
  • Save Jcpetrucci/81a10f90146d666f8472 to your computer and use it in GitHub Desktop.
Save Jcpetrucci/81a10f90146d666f8472 to your computer and use it in GitHub Desktop.
fibonacci golf in 58 characters (bash)
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