Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/FizzBuzz/UNIX-Shell/fizzbuzz-2.sh
Normal file
13
Task/FizzBuzz/UNIX-Shell/fizzbuzz-2.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
n=1
|
||||
while [ 100 -ge n ]; do
|
||||
if [ $((n % 15)) -eq 0 ]; then
|
||||
echo FizzBuzz
|
||||
elif [ $((n % 3)) -eq 0 ]; then
|
||||
echo Fizz
|
||||
elif [ $((n % 5)) -eq 0 ]; then
|
||||
echo Buzz
|
||||
else
|
||||
echo $n
|
||||
fi
|
||||
n=$((n + 1))
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue