mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-05 19:40:52 -07:00
13 lines
250 B
Bash
Executable file
13 lines
250 B
Bash
Executable file
#! /bin/sh
|
|
|
|
for i in $(seq 100); do
|
|
if [ $(expr $i % 15) = 0 ]; then
|
|
echo 'FizzBuzz'
|
|
elif [ $(expr $i % 3) = 0 ]; then
|
|
echo 'Fizz'
|
|
elif [ $(expr $i % 5) = 0 ]; then
|
|
echo 'Buzz'
|
|
else
|
|
echo $i
|
|
fi
|
|
done
|