langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
11
Task/FizzBuzz/UNIX-Shell/fizzbuzz-2.sh
Normal file
11
Task/FizzBuzz/UNIX-Shell/fizzbuzz-2.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
for n in `seq 1 100`; do
|
||||
if [ $((n % 15)) = 0 ]; then
|
||||
echo FizzBuzz
|
||||
elif [ $((n % 3)) = 0 ]; then
|
||||
echo Fizz
|
||||
elif [ $((n % 5)) = 0 ]; then
|
||||
echo Buzz
|
||||
else
|
||||
echo $n
|
||||
fi
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue