Bash (Bourne Again SHell) is the default shell and scripting language on most Linux distributions and macOS.

How to test

Prerequisites: Bash (pre-installed on all Unix/Linux/macOS systems)

bash fibonacci.sh

Expected output:

0
1
1
2
3
5
8
13
21
34

Source Code

#!/usr/bin/env bash
a=0
b=1
for i in $(seq 1 10); do
    echo $a
    c=$((a + b))
    a=$b
    b=$c
done

Local Testing Screenshot Image