Created
December 13, 2012 23:55
-
-
Save mikeda/4281232 to your computer and use it in GitHub Desktop.
手元のbashでFizzBuzz書いた
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
#コーディング時間5分。書き始める前に他の作業しながらある程度考えてた | |
$ for i in {0..100};do if [ $((i%15)) -eq 0 ];then echo FizzBuzz;elif [ $((i%3)) -eq 0 ];then echo Fizz;elif [ $((i%5)) -eq 0 ];then echo Buzz;else echo $i;fi;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment