Created
January 8, 2019 14:26
-
-
Save maishsk/e64551a2387aa4dd350a134891be1cf6 to your computer and use it in GitHub Desktop.
simple loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for number in {1..100} | |
do | |
if (( $number % 15 == 0 )); then | |
echo "pinklemonade" | |
elif (( $number % 5 == 0 )); then | |
echo "lemonade" | |
elif (( $number % 3 == 0 )); then | |
echo "pink" | |
else | |
echo $number | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment