Skip to content

Instantly share code, notes, and snippets.

@earlonrails
earlonrails / fizzbuzz.sh
Last active November 25, 2022 11:15
Fizz Buzz in bash! Hooray!
#!/bin/bash
x=1
while [ $x -le 100 ]
do
if [[ 0 -eq "($x%3) + ($x%5)" ]]
then
# Check if divide by 3 & 5 #
echo "fizz buzz"
elif [[ 0 -eq "($x%5)" ]]
then