cmd.exeのワンライナーでFizzBuzzを性懲りもなくまた。
twitterでもいいか・・・と思ってたんだけど140文字を超えてしまったのでこちらに。
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
for /l %i in (1,1,100) do @((set/a a=%i%3,b=%i%5)>nul & if !a!!b!==00 (echo FizzBuzz) else (if !b!==0 (echo Buzz) else if !a!==0 (echo Fizz) else (echo %i))) |