Created
October 9, 2018 15:23
-
-
Save tavin/9637d829cdc8517931cc5d9030e79e8b to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
fibs=(1 1) | |
while ((fibs[-1] < 200)) | |
do | |
echo ${fibs[@]} | |
fibn=$((fibs[-1] + fibs[-2])) | |
fibs+=($fibn) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment