read n i=0 while [ ${i} -lt ${n} ] do : $((i++)) x=$((i % 3)) y=$((i % 5)) if [ ${x} -eq 0 ] && [ ${y} -eq 0 ]; then echo "FizzBuzz" elif [ ${x} -eq 0 ]; then echo "Fizz" elif [ ${y} -eq 0 ]; then echo "Buzz" else echo ${i} fi done