nondescript/benchmarks/efib.sh

13 lines
103 B
Bash

x=0
y=1
i=2
while [ $i -lt 300 ]
do
i=$(( $i + 1 ))
z=$(( $x + $y ))
x=$y
y=$z
done
echo "$y"