Skip to content

Commit 11f0561

Browse files
authored
Merge pull request #56 from Palak305/main
Bash/fizzbuzz.sh
2 parents efb3d2f + 5befe15 commit 11f0561

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Bash/fizzbuzz.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Hello World Program in Bash Shell
2+
3+
for ((i=1;i<=100;i++)); do
4+
if ! ((i%15)); then
5+
echo FizzBuzz
6+
elif ! ((i%3)); then
7+
echo Fizz
8+
elif ! ((i%5)); then
9+
echo Buzz
10+
else
11+
echo $i
12+
fi;
13+
done

0 commit comments

Comments
 (0)