Created
July 17, 2018 14:21
-
-
Save justinbaker999/58dd12d38e8b05230fddb9563cbeefcf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# !/bin/bash | |
# $__ $___ | |
# Fizz Buzz | |
C=0;__=Fizz;___=Buzz;until [ $C -gt 100 ]; do if [ $(( $C % 5 )) -eq 0 ] && [ $(( $C % 3 )) -eq 0 ]; then a="$__$___";elif [ $(( $C % 3 )) -eq 0 ]; then a=$___;elif [ $(( $C % 5 )) -eq 0 ]; then a=$__;else a=$C; fi; let C+=1; echo "$a"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment