Search found 1 match

by Tragrirk
Fri Apr 22, 2016 8:22 am
Forum: Challenges Solved
Topic: Rabbits everywhere
Replies: 7
Views: 1596

My solution is a little crufty right now, as I'm running on a very limited knowledge of Bash. I hope to improve it and trim it down a bit latter. #!/bin/bash result=0 num1=0 num2=0 next=1 for count in {1..9} do if [ "$num2" -lt 1 ] then num2=$next let next=$num1+$num2 else num1=$num2 num2=...